how to invoke a function which hava array parameters #168
LiQingMuBai
started this conversation in
General
Replies: 2 comments
|
Hey! We've just opened PR #231 which adds a JustLend energy rental example ( For more detailed and protocol-specific examples (including SunSwap and others), we're building out a dedicated examples repository: https://github.com/fbsobreira/gotron-examples Feel free to check it out and open issues there if you'd like to see specific examples added! |
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]
All reactions