Transaction.callContract constructor
Transaction.callContract({
- required DeployedContract contract,
- required ContractFunction function,
- required List parameters,
- EthereumAddress? from,
- int? maxGas,
- EtherAmount? gasPrice,
- EtherAmount? value,
- int? nonce,
- EtherAmount? maxFeePerGas,
- EtherAmount? maxPriorityFeePerGas,
Constructs a transaction that can be used to call a contract function.
Implementation
Transaction.callContract(
{required DeployedContract contract,
required ContractFunction function,
required List<dynamic> parameters,
this.from,
this.maxGas,
this.gasPrice,
this.value,
this.nonce,
this.maxFeePerGas,
this.maxPriorityFeePerGas})
: to = contract.address,
data = function.encodeCall(parameters);