1

This is my parachain, I am getting this error while doing transaction.

1002: Verification Error: Runtime error: Execution failed: Runtime panicked: Bad input data provided to validate_transaction: Could not decode `ChargeAssetTxPayment::asset_id`: unexpected first byte decoding Option : RuntimeApi, Execution failed: Runtime panicked: Bad input data provided to validate_transaction: Could not decode `ChargeAssetTxPayment::asset_id`:\n\tunexpected first byte decoding Option\n

enter image description here

Someone please tell me what is wrong here?

Github repo

1 Answer 1

1

I think the problem is that polkadot-js probably doesn't send a correctly encoded extrinsic.

You should change:

    pallet_transaction_payment::ChargeTransactionPayment<Runtime>,
    pallet_asset_tx_payment::ChargeAssetTxPayment<Runtime>,

To

    pallet_asset_tx_payment::ChargeAssetTxPayment<Runtime>,

As the docs of ChargeAssetTxPayment mention, passing None as asset_id will fall back to the normal ChargeTransactionPayment extension.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.