Closed patniemeyer closed 2 years ago
As mentioned in README, all tuple is consider List
type. And because of dart:js limitation, List
instances coming from JavaScript will always be List<dynamic>
.
So your return type are List<dynamic>
which first and second element is BigNumber
type.
I'm not seeing a way to use a tuple / struct value as a return type, e.g.:
function read(address foo) external view returns (uint256, uint256)
As a workaround I'm just interpreting the dynammics as strings but I was wondering if I missed something. Thanks.