permit method

Future<String> permit(
  1. EthereumAddress owner,
  2. EthereumAddress spender,
  3. BigInt value,
  4. BigInt deadline,
  5. BigInt v,
  6. Uint8List r,
  7. Uint8List s, {
  8. required Credentials credentials,
  9. 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> permit(_i1.EthereumAddress owner, _i1.EthereumAddress spender,
    BigInt value, BigInt deadline, BigInt v, _i2.Uint8List r, _i2.Uint8List s,
    {required _i1.Credentials credentials,
    _i1.Transaction? transaction}) async {
  final function = self.abi.functions[27];
  assert(checkSignature(function, 'd505accf'));
  final params = [owner, spender, value, deadline, v, r, s];
  return write(credentials, transaction, function, params);
}