-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Given value is not a list" while the value is U256 #345
Comments
I did some debugging and I found out that there are some unexpected SCALE encoding issues with the In the metadata of the runtime, this type is defined as followed:
Somehow the metadata dictates that this Until this is figured out, as a workaround you can overwrite this type with: substrate = SubstrateInterface(
url=url,
type_registry={"types": {"primitive_types::U256": "U256"}}
) |
Path override included in new release of scalecodec, if you update to https://github.com/polkascan/py-substrate-interface/releases/tag/v1.7.3 this shouldn't be an issue anymore |
Thanks! I checked the workaround yesterday and I had the same error. But it might be related to |
Hi!
I'm trying to compose a call for my frontier-based node:
But I'm getting an error:
I don't know wether it's ok to expect a list in the place of
U256
, but here is the metadata for the function:Could you tell me how can I properly specify the params? Or is it a bug?
The text was updated successfully, but these errors were encountered: