I add pallet-contract into substrate-node-template
, and use polkadot-JS to upload ink! contracts. But I get something wrong when I upload a contract.
logs like this:
createType(Call):: Call: failed decoding contracts.instantiateWithCode:: Struct: failed on args:
{"value":"Lookup115","gas_limit":"Lookup82","storage_deposit_limit":"Option<Compact>","code":"Bytes","data":"Bytes","salt":"Bytes"}:: Struct: failed on gas_limit: Compact:: Unable to construct number from multi-key object
I tried substrate-contracts-node
to generate blocks, and it can upload a contract successfully using polkadot-JS.
I have to use substrate-node-template
to complete my work, what should I do to solve this problem?
Besides, I've seen other people have this problem: https://github.com/polkadot-js/apps/issues/8427