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 - bad transfer #296

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

Graceful Errors - bad transfer #296

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

Comments

@mixmix
Copy link
Contributor

mixmix commented Nov 12, 2024

e.g.

entropy transfer dogs 222

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 balances.transferAllowDeath:: Struct: failed on args: {"dest":"MultiAddress","value":"Lookup80"}:: Struct: failed on dest: {"_enum":{"Id":"AccountId","Index":"Compact<AccountIndex>","Raw":"Bytes","Address32":"H256","Address20":"H160"}}:: Decoding dogs: Invalid decoded address checksum
    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 transferAllowDeath] (file:///home/ENTROPY/cli/node_modules/@polkadot/api/base/Decorate.js:539:50)
    at file:///home/ENTROPY/cli/dist/cli.js:11270:42
    at new Promise (<anonymous>)
    at EntropyTransfer.rawTransfer (file:///home/ENTROPY/cli/dist/cli.js:11269:12)
    at EntropyTransfer.transfer (file:///home/ENTROPY/cli/dist/cli.js:11254:18)
    at Command.<anonymous> (file:///home/ENTROPY/cli/dist/cli.js:12064:27)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Ways it could fail

  • bad "destination"
  • bad "amount" (not enough, invalid input)
  • bad "from" account
@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