safeTransferFrom method

Uint8List safeTransferFrom(
  1. String from,
  2. String to,
  3. int id,
  4. String amount,
  5. Uint8List data,
)

Implementation

Uint8List safeTransferFrom(
    String from, String to, int id, String amount, Uint8List data) {
  return safeTransferFromFunc.encodeCall([
    EthereumAddress.fromHex(from),
    EthereumAddress.fromHex(to),
    BigInt.from(id),
    BigInt.parse(amount),
    data
  ]);
}