Traceback (most recent call last):
File "/app/dapps/ink-python/example/./src/app.py", line 142, in <module>
signature_payload = substrate.generate_signature_payload(call=call, era=era, nonce=nonce)
File "/usr/local/lib/python3.9/dist-packages/substrateinterface/base.py", line 1511, in generate_signature_payload
signature_payload.encode(payload_dict)
File "/usr/local/lib/python3.9/dist-packages/scalecodec/base.py", line 925, in encode
self.data = self.process_encode(self.value_serialized)
File "/usr/local/lib/python3.9/dist-packages/scalecodec/types.py", line 603, in process_encode
data += element_obj.encode(value[key])
File "/usr/local/lib/python3.9/dist-packages/scalecodec/base.py", line 925, in encode
self.data = self.process_encode(self.value_serialized)
File "/usr/local/lib/python3.9/dist-packages/scalecodec/types.py", line 672, in process_encode
data += element_obj.encode(value[idx])
File "/usr/local/lib/python3.9/dist-packages/scalecodec/base.py", line 925, in encode
self.data = self.process_encode(self.value_serialized)
File "/usr/local/lib/python3.9/dist-packages/scalecodec/types.py", line 1954, in process_encode
raise ValueError('Value should be {} bytes long'.format(self.element_count))
ValueError: Value should be 32 bytes long
it is caused because i'm using keypair_bob.ss58_address
why doesn't it let me use the value of keypair_bob.ss58_address?
note: i get the same error even if i change it to '5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY', which is the value used in the example in the docs in the link mentioned above
i'm using the following dependencies
if i try this example https://polkascan.github.io/py-substrate-interface/usage/keypair-creation-and-signing/?h=signature_payload#offline-signing-of-extrinsics
i run a node using
substrate-contracts-node 0.25.0-a2b09462c7c
i get the following error:
it is caused because i'm using
keypair_bob.ss58_address
why doesn't it let me use the value ofkeypair_bob.ss58_address
? note: i get the same error even if i change it to'5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY'
, which is the value used in the example in the docs in the link mentioned above