if the type for extrinsic verification pub struct ChargeTransactionPayment<T: Config>
has been changed on a chain, how do we update the polkadot.js API to use the new types? Suppose the type has been changed to
pub struct ChargeTransactionPayment<T: Config> {
pub scheme: u8,
pub asset_id: Option<ChargeAssetIdOf<T>>,
pub tip: BalanceOf<T>,
}
How can I let the polkdot.js api know about this update and set them before executing an extrinsic? I tried adding it to the registry and calling the extrinsic as shown below. but it give me the error "createType(ChargeAssetTxPayment):: DoNotConstruct: Cannot construct unknown type ChargeAssetTxPayment"
api.registry.createType("ChargeAssetTxPayment", {
extrinsic: {
scheme:'2',
asset_id: 4,
tip: 10
},
payload: {}
})
I am trying to do something similar to what statemint did, is it possible to set these custom parameters using the api directly?