approve method

Uint8List approve(
  1. String to,
  2. int tokenId
)

Implementation

Uint8List approve(String to, int tokenId) {
  return approveFunc
      .encodeCall([EthereumAddress.fromHex(to), BigInt.from(tokenId)]);
}