approveTx method
- required String sender,
- required String spender,
- required BigInt value,
- EvmFeeInformation<
EvmGasPrice> ? feeInfo,
Implementation
Future<RawEvmTransaction> approveTx({
required String sender,
required String spender,
required BigInt value,
EvmFeeInformation? feeInfo,
}) async {
final function = abi.getFunction('approve')!;
return await buildTransactionForFunction(
function: function.addValues(values: [spender, value]),
sender: sender,
feeInfo: feeInfo,
);
}