approve method
Future<String>
approve(
- EthereumAddress spender,
- BigInt amount, {
- required Credentials credentials,
- Transaction? transaction,
The optional transaction
parameter can be used to override parameters
like the gas price, nonce and max gas. The data
and to
fields will be
set by the contract.
Implementation
Future<String> approve(
_i1.EthereumAddress spender,
BigInt amount, {
required _i1.Credentials credentials,
_i1.Transaction? transaction,
}) async {
final function = self.abi.functions[1];
assert(checkSignature(function, '095ea7b3'));
final params = [
spender,
amount,
];
return write(
credentials,
transaction,
function,
params,
);
}