generated contract code shows "Expected an identifier." error
Hanggi opened this issue · 1 comments
Hanggi commented
The solidity code was:
mapping(address => uint) public userTotalAmount;
And generates as below:
/// The optional [atBlock] parameter can be used to view historical data. When
/// set, the function will be evaluated in the specified block. By default, the
/// latest on-chain block will be used.
Future<BigInt> userTotalAmount(_i1.EthereumAddress , <--------------- The first param shows "Expected an identifier."
{_i1.BlockNum? atBlock}) async {
final function = self.function('userTotalAmount');
final params = [];
final response = await read(function, params, atBlock);
return (response[0] as BigInt);
}