Skip to content

Commit

Permalink
Merge branch 'master' into az-metadata-v15
Browse files Browse the repository at this point in the history
  • Loading branch information
arjanz committed Nov 20, 2023
2 parents d1920d5 + 40f255c commit 4d224f0
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions substrateinterface/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ def get_block_runtime_version(self, block_hash):
return response.get('result')

def generate_storage_hash(self, storage_module: str, storage_function: str, params: list = None,
hashers: list = None):
hashers: list = None) -> str:
"""
Generate a storage key for given module/function
Expand Down Expand Up @@ -1378,7 +1378,9 @@ def create_scale_object(

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):
def compose_call(
self, call_module: str, call_function: str, call_params: dict = None, block_hash: str = None
) -> GenericCall:
"""
Composes a call payload which can be used in an extrinsic.
Expand Down Expand Up @@ -1541,10 +1543,12 @@ def generate_signature_payload(self, call: GenericCall, era=None, nonce: int = 0

return signature_payload.data

def create_signed_extrinsic(self, call: GenericCall, keypair: Keypair, era: dict = None, nonce: int = None,
tip: int = 0, tip_asset_id: int = None, signature: Union[bytes, str] = None) -> GenericExtrinsic:
def create_signed_extrinsic(
self, call: GenericCall, keypair: Keypair, era: dict = None, nonce: int = None,
tip: int = 0, tip_asset_id: int = None, signature: Union[bytes, str] = None
) -> GenericExtrinsic:
"""
Creates a extrinsic signed by given account details
Creates an extrinsic signed by given account details
Parameters
----------
Expand Down

0 comments on commit 4d224f0

Please sign in to comment.