Skip to content

Decoding Issue with Acala Extrinsic #518

Description

@luckychacha

Hi, I am attempting to decode a specific Acala extrinsic using txwrapper libraries. The decoding result is incorrect:

import {
  decode,
  getRegistry
} from '@substrate/txwrapper-polkadot';

const decodedSigned = decode("0x510284000684c0ea2f99fe4fb8461097819b90e611c2ba1a2cd48ccae732e074e1fbc03c018a50f27c630b566f4847b9dfebd0340c8317e42d44049961e5bdd8dea1cfb248d7665665125e438e8cb5793a05674b3b4e2261be87557c08421e4d9b9aae678104014d0800000a0300761837f9af59a263385ef7bb18f07295758cba4881a4599198a6ca499db0803b0fed1a0069b25f09", {
  metadataRpc,
  registry,
});
const { metadataRpc: _, ...rest } = decodedSigned;
console.log('decodedSigned:', rest);

1. Transaction Details (Expected):

  • Subscan Link: https://acala.subscan.io/extrinsic/9932053-2
  • Expected Extrinsic: balances.transfer_keep_alive

2. Raw Hex Input:

0x510284000684c0ea2f99fe4fb8461097819b90e611c2ba1a2cd48ccae732e074e1fbc03c018a50f27c630b566f4847b9dfebd0340c8317e42d44049961e5bdd8dea1cfb248d7665665125e438e8cb5793a05674b3b4e2261be87557c08421e4d9b9aae678104014d0800000a0300761837f9af59a263385ef7bb18f07295758cba4881a4599198a6ca499db0803b0fed1a0069b25f09

3. Observed Decoding Output (Incorrect):

decodedSigned: {
  // ... (omitted metadata/hash fields)
  method: {
    args: {
      ethAddress: '0x0684c0ea2f99fe4fb8461097819b90e611c2ba1a',
      ethSignature: '0x2cd48ccae732e074e1fbc03c0120f8486350fee3306ff8fd7a6bfad0efa6cc40f1136c1373ea8f7ef69d7b8311d6c776b80eecd5389c1507676efc9e126262c507'
    },
    name: 'claimAccount',
    pallet: 'evmAccounts'
  },
  // ...
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions