approve method

Future<TransactionResponse> approve(
  1. String spender,
  2. BigInt amount
)

Sets amount as the allowance of spender over the caller's tokens.

Implementation

Future<TransactionResponse> approve(String spender, BigInt amount) =>
    contract.send('approve', [spender, amount.toString()]);