Skip to content

Commit

Permalink
Compatibility fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Arjan Zijderveld committed Jul 15, 2020
1 parent 6b3147f commit 0f5c62e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
language: python
python: 3.6
python: 3.8
script: pytest
4 changes: 2 additions & 2 deletions substrateinterface/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import requests
import websockets

from scalecodec import ScaleBytes
from scalecodec import ScaleBytes, GenericCall
from scalecodec.base import ScaleDecoder, RuntimeConfiguration
from scalecodec.block import ExtrinsicsDecoder, EventsDecoder, LogDigest
from scalecodec.metadata import MetadataDecoder
Expand Down Expand Up @@ -956,7 +956,7 @@ def create_signed_extrinsic(self, call, keypair: Keypair, era=None, nonce=None,
"""

# Check requirements
if call.__class__.__name__ != 'Call':
if not isinstance(call, GenericCall):
raise TypeError("'call' must be of type Call")

# Retrieve nonce
Expand Down

0 comments on commit 0f5c62e

Please sign in to comment.