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

Method SwapExactAmountIn does not exist on the querier. #4084

Closed
joeabbey opened this issue Jan 23, 2023 · 0 comments · Fixed by #4132
Closed

Method SwapExactAmountIn does not exist on the querier. #4084

joeabbey opened this issue Jan 23, 2023 · 0 comments · Fixed by #4132

Comments

@joeabbey
Copy link
Contributor

joeabbey commented Jan 23, 2023

System information

Osmosis version: Osmosis version
OS & Version: Windows/Linux/OSX
Commit hash: 62587bf

Expected behaviour

{"token_out_amount":"4889054"}

Actual behaviour

/home/jabbey/.osmosisd/cosmovisor/current/bin/osmosisd q gamm estimate-swap-exact-amount-in 722 osmo1xwazl8ftks4gn00y5x3c47auquc62ssuds42sz 9746109223341728563ibc/6AE98883D4D5D5FF9E50D7130F1305DA2FFA0C652D1DD9C123657C6
B4EB2DF8A --swap-route-pool-ids 722,678 --swap-route-denoms uosmo,ibc/D189335C6E4A68B513C10AB227BF1C1D38C746766278BA3EEB4FB14124F1D858 --output json
Error: accepts 4 arg(s), received 3

Giving it a fourth argument for funsies:

/home/jabbey/.osmosisd/cosmovisor/current/bin/osmosisd q gamm estimate-swap-exact-amount-in 722 osmo1xwazl8ftks4gn00y5x3c47auquc62ssuds42sz 9746109223341728563ibc/6AE98883D4D5D5FF9E50D7130F1305DA2FFA0C652D1DD9C123657C6
B4EB2DF8A --swap-route-pool-ids 722,678 --swap-route-denoms uosmo,ibc/D189335C6E4A68B513C10AB227BF1C1D38C746766278BA3EEB4FB14124F1D858 --output json BONK
Error: Method SwapExactAmountIn does not exist on the querier. You likely need to override QueryFnName in your Query descriptor

As a workaround, I appear to be able to use v13 to construct the queries and transactions.. (probably a quick fix though)

Steps to reproduce the behaviour

Backtrace

[backtrace]

When submitting logs: please submit them as text and not screenshots.

@github-project-automation github-project-automation bot moved this to Needs Review 🔍 in Osmosis Chain Development Jan 23, 2023
@joeabbey joeabbey changed the title osmosisd q gamm estimate-swap-exact-amount-in Method SwapExactAmountIn does not exist on the querier. Jan 23, 2023
@github-project-automation github-project-automation bot moved this from Needs Review 🔍 to Done ✅ in Osmosis Chain Development Jan 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant