-
Notifications
You must be signed in to change notification settings - Fork 359
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
Unable to create Enum via index 128, in Alive, Tombstone #4151
Comments
Ummm… has there been changes to -
Before it started breaking? |
I'm afraid I don't know when this was last working as I have only just started using From the console on contract page after having instantiated a contract using command line.
One thing I noticed was the definitions for
Substrate - many more underscored variables
I have also seen it mentioned that |
Any reason why nose contracts are not on metadata v14. Trying to keep up with the contracts dev but a a nightmare. We have stopped adding types since v14 was added (since it defies all) I hate to go back and add more for recent contract changes. Where it is an issue even with v14 is when it comes via RPC (ie. Not storage) - that is still hanging. |
I'm not sure I follow. The contracts were compiled using I know you're referring to metadata versions in |
I see I have
|
Having looked into it, I see that this key is something to do with ink versioning their metadata as either
|
There are 2 metadata areas that come into play -
If it is a metadata v14 node, the api-contracts module does something funky where it doesn't use a specific type from metadata (but rather the old-style-huge-PITA-to-sync types). Which would be a bug. |
Thanks @jacogr. The node is the substrate contracts node. How do I tell if its <=13 or >=14? |
Still v13, the merge was reverted - paritytech/substrate-contracts-node#8 If a crisis, would accept PRs to update the types. (As suggested it is not something I can dedicate time to myself since it is not needed anymore in Substrate, so luckily all those hours that were needed to keep in sync is now available for other efforts) |
Really appreciate the info. I checked out the repo before it was reverted (8d91b8e) and built it locally. This has allowed me to successfully use |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue if you think you have a related problem or query. |
Steps to reproduce
salt
deployedAddress
contractInfoOf
const contractInfo = await this.api.query.contracts.contractInfoOf(deployedAddress);
2021-11-02 15:06:07 RPC-CORE: getStorage(key: StorageKey, at?: BlockHash): StorageData:: Unable to decode storage contracts.contractInfoOf:: createType(ContractInfo):: Unable to create Enum via index 128, in Alive, Tombstone Error: Unable to decode storage contracts.contractInfoOf:: createType(ContractInfo):: Unable to create Enum via index 128, in Alive, Tombstone at RpcCore._newType (/home/user/dev/project/provider/node_modules/@polkadot/rpc-core/bundle.cjs:455:13) at RpcCore._formatStorageData (/home/user/dev/project/provider/node_modules/@polkadot/rpc-core/bundle.cjs:403:17) at RpcCore._formatOutput (/home/user/dev/project/provider/node_modules/@polkadot/rpc-core/bundle.cjs:380:19) at RpcCore._formatResult (/home/user/dev/project/provider/node_modules/@polkadot/rpc-core/bundle.cjs:238:27) at callWithRegistry (/home/user/dev/project/provider/node_modules/@polkadot/rpc-core/bundle.cjs:259:19)
Using versions:
This error has also been encountered in ink waterfall tests: https://gitlab.parity.io/parity/ink-waterfall/-/jobs/1189814
I'm running the substrate contracts node, which tracks master. I most recently compiled this today (https://github.com/paritytech/substrate#b391b829).
The text was updated successfully, but these errors were encountered: