Improve the error information when using wrong type in signed extensions (ChargeAssetTxPayment) #4267
Open
2 tasks done
Labels
I5-enhancement
An additional feature request.
I10-unconfirmed
Issue might be valid, but it's not yet known.
Is there an existing issue?
Experiencing problems? Have you tried our Stack Exchange first?
Motivation
Once the Asset conversion pallet is live in Asset Hub runtimes, the signed extension
ChargeAssetTxPayment
allows to pay fees with an asset which has a liquidity pool created vs DOT by passing (optionally) the XCM location of the corresponding asset as a param of the signed extension. Before this feature was live, this worked by simply passing an integer as asset ID,Option(u32)
, in the mentioned signed extension. Hence if users were not aware of the change and they submit a transaction where the asset ID param of theChargeAssetTxPayment
signed extension is an integer it will fail during verification in the transaction pool and return the following error message from the node:Several users encountered this issue when Polkadot Asset Hub was upgrade to 1.2 runtime, and it was not straightforward to find the root cause.
Request
Capture the wrong type usage during transaction verification in the transaction pool and return a relevant error message from the node.
The text was updated successfully, but these errors were encountered: