Closed forgetso closed 2 years ago
In polkadot api, assuming a contract with function called inc, you can do:
inc
await contract .exec('inc', { value, gasLimit }, incValue)
In redspot, using this format contract.tx.inc(args) only allows the arguments of the contract function, not the value and gas limit.
contract.tx.inc(args)
How are the value and gas limit set in redspot?
Nevermind, I see that the overrides are added after the function parameters:
contract.tx.inc(args, { gasLimit:1000000000, value:10 })
In polkadot api, assuming a contract with function called
inc
, you can do:In redspot, using this format
contract.tx.inc(args)
only allows the arguments of the contract function, not the value and gas limit.How are the value and gas limit set in redspot?