Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

estimate-swap-exact-amount return Error: accepts 4 arg(s), received 3 #4225

Closed
Tracked by #4624
EzrielS opened this issue Feb 5, 2023 · 10 comments
Closed
Tracked by #4624

estimate-swap-exact-amount return Error: accepts 4 arg(s), received 3 #4225

EzrielS opened this issue Feb 5, 2023 · 10 comments

Comments

@EzrielS
Copy link

EzrielS commented Feb 5, 2023

System information

Osmosis version: 14.0.0
OS & Version: Linux

Expected behaviour

osmosisd q gamm estimate-swap-exact-amount-in 722 osmo1xwazl8ftks4gn00y5x3c47auquc62ssuds42sz 9746109223341728563ibc/6AE98883D4D5D5FF9E50D7130F1305DA2FFA0C652D1DD9C123657C6B4EB2DF8A --swap-route-pool-ids 722,678 --swap-route-denoms uosmo,ibc/D189335C6E4A68B513C10AB227BF1C1D38C746766278BA3EEB4FB14124F1D858 --output json should work.

Actual behaviour

It return Error: accepts 4 arg(s), received 3

@mattverse
Copy link
Member

mattverse commented Feb 6, 2023

Thanks for the issue! Can you confirm if your binary is in the right version? (Latest Mainnet verison, which is V14)

I have tested this locally on the latest binary and would return error if the given command is not 3 argument.

@EzrielS
Copy link
Author

EzrielS commented Feb 6, 2023

Thank you for your reply, when I do osmosisd version I get 14.0.0 too. Maybe it's not the "latest 14.0.0" release ? I don'd know if there are such things.

@mattverse
Copy link
Member

Interesting, what do you get when you do the following query?

osmosisd q gamm estimate-swap-exact-amount-in 722 osmo1xwazl8ftks4gn00y5x3c47auquc62ssuds42sz 9746109223341728563ibc/6AE98883D4D5D5FF9E50D7130F1305DA2FFA0C652D1DD9C123657C6B4EB2DF8A --swap-route-pool-ids 722 --swap-route-denoms uosmo,ibc/D189335C6E4A68B513C10AB227BF1C1D38C746766278BA3EEB4FB14124F1D858 --output json

@EzrielS
Copy link
Author

EzrielS commented Feb 6, 2023

It's the same error.

@mattverse
Copy link
Member

It should not be omitting same error, could you double check if you do not have duplciated binary or if you have properly set GOPATHs?

@EzrielS
Copy link
Author

EzrielS commented Feb 7, 2023

It's possible, I used source <(curl -sL https://get.osmosis.zone/run) but I had some problems at the installation, but the node seems to work well. How can I check if the binary is duplicated ? whereis osmosisd returns only one, and it seems to be the good one.
Thanks in advance !

@FruityFranck
Copy link

Hello, had the same error
I think the fix is on the top of v14.x branch but not on v14.0.0 tag.
#4132

@EzrielS
Copy link
Author

EzrielS commented Feb 12, 2023

Thanks ! I tried to git checkout v14.x && make build, but then when i ./build/osmosisd version I get an error: ./build/osmosisd: error while loading shared libraries: libwasmvm.x86_64.so: cannot open shared object file: No such file or directory. Is there something else to do when building a "non-final" version ?

@DongLieu
Copy link
Contributor

Can i handle it?

@DongLieu
Copy link
Contributor

DongLieu commented Apr 9, 2023

I think we should close this issue as version 15 onwards fixed this bug, the reason for this problem is here and here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

5 participants