Skip to content
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

Graceful Errors - program add #300

Open
mixmix opened this issue Nov 12, 2024 · 0 comments
Open

Graceful Errors - program add #300

mixmix opened this issue Nov 12, 2024 · 0 comments
Milestone

Comments

@mixmix
Copy link
Contributor

mixmix commented Nov 12, 2024

entropy program add pointerYourself 

2024-11-12 15:17:34             VEC: Unable to decode on index 1 Struct: failed on programPointer: H256:: Expected input with 32 bytes (256 bits), found 15 bytes
file:///home/ENTROPY/cli/node_modules/@polkadot/types-create/create/type.js:51
        firstError = new Error(`createType(${type}):: ${error.message}`);
                     ^

Error: createType(Call):: Call: failed decoding registry.changeProgramInstance:: Struct: failed on args: {"verifying_key":"Bytes","new_program_instance":"Vec<PalletRegistryProgramInstance>"}:: Struct: failed on new_program_instance: Vec<PalletRegistryProgramInstance>:: Struct: failed on programPointer: H256:: Expected input with 32 bytes (256 bits), found 15 bytes
    at createTypeUnsafe (file:///home/ENTROPY/cli/node_modules/@polkadot/types-create/create/type.js:51:22)
    at TypeRegistry.createTypeUnsafe (file:///home/ENTROPY/cli/node_modules/@polkadot/types/create/registry.js:226:16)
    at extrinsicFn (file:///home/ENTROPY/cli/node_modules/@polkadot/types/metadata/decorate/extrinsics/createUnchecked.js:13:25)
    at Object.decorated [as changeProgramInstance] (file:///home/ENTROPY/cli/node_modules/@polkadot/api/base/Decorate.js:539:50)
    at ProgramManager.set (file:///home/ENTROPY/cli/node_modules/@entropyxyz/sdk/dist/index.js:647:43)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async ProgramManager.add (file:///home/ENTROPY/cli/node_modules/@entropyxyz/sdk/dist/index.js:697:5)
    at async Command.<anonymous> (file:///home/ENTROPY/cli/dist/cli.js:12163:5)
    at async Command.parseAsync (/home/ENTROPY/cli/node_modules/commander/lib/command.js:1092:5)
@mixmix mixmix added this to the Usability milestone Nov 12, 2024
@frankiebee frankiebee removed this from the Usability milestone Dec 2, 2024
@mixmix mixmix added this to the Usability milestone Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants