Closed sweatpotato13 closed 7 months ago
Unfortunately not (easily) at the moment. To give pointer where signed_extensions are defined:
And here they are used to build extrinsic payload and generate extrinsic signature payload:
I am working on version 2 of scale-codec and substrate-interface which is a huge overhaul and more customazible, but for now your best bet is to override the function definition at runtime of GenericMetadataVersioned.get_signed_extensions()
For example:
class CustomMetadataVersioned(GenericMetadataVersioned):
def get_signed_extensions(self):
return {}
GenericMetadataVersioned.get_signed_extensions = CustomMetadataVersioned.get_signed_extensions
substrate = SubstrateInterface(
url="ws://127.0.0.1:9944"
)
# etc
So, it is possible to modify the code now.
Thank you for answer.
For example, in npm library
@polkadot/api
support custom type and signedExtensions like thisIs there a way to change signedExtensions