我试图签署一个交易链外,但它给我错误。
var data = contract.function('permit').encodeCall([
credentialsA.address,
appOwnerCredentials.address,
1000,
deadline,
0,
Uint8List(32),
Uint8List(32),
]);
字符串
上面的代码是生成下面的错误的原因
E/flutter ( 6175): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: type 'int' is not a subtype of type 'BigInt' of 'data'
E/flutter ( 6175): #0 UintType.encode (package:web3dart/src/contracts/abi/integers.dart)
E/flutter ( 6175): #1 TupleType.encode (package:web3dart/src/contracts/abi/tuple.dart:71:14)
E/flutter ( 6175): #2 ContractFunction.encodeCall (package:web3dart/src/contracts/abi/abi.dart:267:10)
E/flutter ( 6175): #3 Contract.transferDymeFrom (package:dymer2/models/contract.dart:1161:41)
E/flutter ( 6175): <asynchronous suspension>
E/flutter ( 6175):
型
我正在尝试使用erc20令牌中的“permit”函数
1条答案
按热度按时间xriantvc1#
你有没有在任何地方使用'data'变量?