Skip to content

Commit

Permalink
Scalecodec version bump
Browse files Browse the repository at this point in the history
Corrected number of storage function params based on hashers #169
Removed duplicate function definition
  • Loading branch information
arjanz committed Dec 24, 2021
1 parent 3579bf9 commit 7f4b38c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 18 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ eth-keys~=0.3.3
eth_utils~=1.10.0
pycryptodome>=3.11.0,<4

scalecodec>=1.0.27,<2
scalecodec>=1.0.28,<2
py-sr25519-bindings>=0.1.2,<1
py-ed25519-bindings>=1.0,<2
py-bip39-bindings>=0.1.8,<1
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@
'eth-keys>=0.3.3,<1',
'eth_utils>=1.10.0,<2',
'pycryptodome>=3.11.0,<4',
'scalecodec>=1.0.27,<2',
'scalecodec>=1.0.28,<2',
'py-sr25519-bindings>=0.1.2,<1',
'py-ed25519-bindings>=1.0,<2',
'py-bip39-bindings>=0.1.8,<1'
Expand Down
16 changes: 0 additions & 16 deletions substrateinterface/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1447,22 +1447,6 @@ def create_scale_object(self, type_string: str, data=None, block_hash=None, **kw

return self.runtime_config.create_scale_object(type_string, data=data, **kwargs)

def create_scale_object(self, type_string: str, data=None, block_hash=None, **kwargs) -> 'ScaleType':
"""
Create a SCALE object of type `type_string`
:param type_string:
:param data:
:param block_hash: Optional block hash for moment of decoding, when omitted the chain tip will be used
:param kwargs:
:return: ScaleType
"""
self.init_runtime(block_hash=block_hash)

if 'metadata' not in kwargs:
kwargs['metadata'] = self.metadata_decoder

return self.runtime_config.create_scale_object(type_string, data=data, **kwargs)

def compose_call(self, call_module: str, call_function: str, call_params: dict = None, block_hash: str = None):
"""
Composes a call payload which can be used as an unsigned extrinsic or a proposal.
Expand Down

0 comments on commit 7f4b38c

Please sign in to comment.