safeBatchTransferFrom method

Uint8List safeBatchTransferFrom(
  1. String from,
  2. String to,
  3. List<int> idList,
  4. List<String> amountList,
  5. Uint8List data,
)

Implementation

Uint8List safeBatchTransferFrom(String from, String to, List<int> idList,
    List<String> amountList, Uint8List data) {
  List<BigInt> ids = idList.map((id) => BigInt.from(id)).toList();
  List<BigInt> amounts =
      amountList.map((amount) => BigInt.parse(amount)).toList();
  return safeBatchTransferFromFunc.encodeCall([
    EthereumAddress.fromHex(from),
    EthereumAddress.fromHex(to),
    ids,
    amounts,
    data
  ]);
}