how to invoke a function which hava array parameters #168
LiQingMuBai
started this conversation in
General
Replies: 1 comment
-
|
This has been fixed in v0.24.2. PRs #181 and #182 added support for array parameters ( Please upgrade and let us know if you run into any further issues. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
just like this,i wanna invoke sunswap's method,
data :=[{"uint256": 1000000}, {"address": ["TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t","TNUC9Qb1rRpS5CbWLmNMxXBjyFoydXjWFR"]}]// result, err := t.client.TriggerConstantContract("TS4WHd3PyEiYXDxRZbmofj1zugudW6Dior", "TKzxdSv2FZKQrEqkKVgp5DcwEXBEKMg2Ax", "getAmountsOut(uint256,address[])", data)error:
panic: invalid address [TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t TNUC9Qb1rRpS5CbWLmNMxXBjyFoydXjWFR]
Beta Was this translation helpful? Give feedback.
All reactions