safeBatchTransferFrom method
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
]);
}