Replies: 1 comment 3 replies
-
If you have an ambiguous ABI, you must specify the fully qualified signature, since JavaScript cannot know which you meant to call. So, you would need to use either: // For the first:
contract["remove_liquidity_one_coin(uin256,int128,uint256)"](token_amount, i, min_uamount);
// For the second:
contract["remove_liquidity_one_coin(uin256,int128,uint256,bool)"](token_amount, i, min_uamount, donate_dust); If you are only using 1 of the methods, I suggest removing the one you don't use. It's generally better to ship code that is as small as possible, so it is in your best interest to strip out any unused ABI methods. :) |
Beta Was this translation helpful? Give feedback.
3 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.
-
Contract: 0xFCBa3E75865d2d561BE8D220616520c171F12851
Method:
def remove_liquidity_one_coin(_token_amount: uint256, i: int128, min_uamount: uint256, donate_dust: bool = False):
ABI for this method:
I get an error "is not a function" when call this. Env: Node, Ganache
If I remove one of descriptions in ABI, it works.
Beta Was this translation helpful? Give feedback.
All reactions