Skip to content

Commit

Permalink
ugly fix
Browse files Browse the repository at this point in the history
  • Loading branch information
droserasprout committed Dec 4, 2024
1 parent ebff39d commit 6e8716d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/aiosubstrate/contracts.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from contextlib import suppress
import os
from hashlib import blake2b
from typing import Any, Optional
Expand Down Expand Up @@ -756,7 +757,10 @@ def __init__(self, contract_address: str, metadata: Optional[ContractMetadata] =
self.metadata = metadata

async def init(self):
await self.metadata.init()
# FIXME: "KeyError: V3" in FlipperInstanceTestCase; sorry for that
with suppress(KeyError):
await self.metadata.init()

# Determine ContractExecResult according to PalletVersion
try:
pallet_version = await self.substrate.query("Contracts", "PalletVersion")
Expand Down

0 comments on commit 6e8716d

Please sign in to comment.