approve method
- required String sender,
- required String spender,
- required BigInt value,
- required Uint8List seed,
- EvmFeeInformation<
EvmGasPrice> ? feeInfo,
Implementation
Future<String> approve({
required String sender,
required String spender,
required BigInt value,
required Uint8List seed,
EvmFeeInformation? feeInfo,
}) async {
final function = abi.functions[1];
assert(function.functionSelectorHex == "095ea7b3");
return await interact(
function: function.addValues(values: [spender, value]),
seed: seed,
sender: sender,
feeInfo: feeInfo,
);
}