I am running the substrate-contracts-node and using the contracts UI to interact with it in Polkadot JS Apps. The contract call is failing when I try using the UI, although the same call works from a subxt
test program.
Steps to reproduce:
Since my contract failed with ContractTrapped
, I went to the events tab to view the extrinsic and it's parameters. Using this I:
- Reproduced the contract and called it from a test program using
subxt
. - I verified that it passed without problem.
- I copied the extrinsic hash from the original failed extrinsic
- I pasted it under the extrinsics tab to decode it. But it was unable to decode the extrinsic.
Why is the contract extrinsic undecodable? I'm suspecting the extrinsic created from the frontend is way different than hand rolling it via subxt.