-
Notifications
You must be signed in to change notification settings - Fork 119
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
ValueError: Index '174' not present in Enum type mapping #335
Comments
There are some known issues atm with the contract interface, seems not up to date with latest version of the Substrate contract pallet. Also see #334, I will open a PR soon where you can track the status of this issue. |
I'm working on a PR, for now I have a workaround to read and exec contract methods, until the new release. Add the following type registry override to the init: substrate = SubstrateInterface(
url="wss://ws.test.azero.dev",
type_registry={
"types": {
"ContractExecResult": "ContractExecResultTo267"
}
}
) |
Thanks a lot for looking into it, I know it's a workaround, but everything works perfectly. |
Hello,
I am trying to read and call a simple flipper smart contract deployed on the Aleph Zero testnet. I have no problems interacting with the blockchain, I get an error just while calling contract.read()
After writing my own code and smart contract, and not being able to overcome the error, i started using the flipper contract and the exact same code from the examples. I still get this error:
this is my code:
I am using a docker image, python 3.8
please let me know if I'm the only one having this issue
The text was updated successfully, but these errors were encountered: