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

fix: use height/hash param on aex9 legacy endpoints #745

Merged
merged 1 commit into from
Jun 29, 2022

Conversation

jyeshe
Copy link
Member

@jyeshe jyeshe commented Jun 28, 2022

What

Use height and hash params to get the balance on aex9 endpoints:

get "/aex9/balances/gen/:height/account/:account_id", Aex9Controller, :balances
get "/aex9/balances/hash/:blockhash/account/:account_id", Aex9Controller, :balances

Why

Fixes #707
Fixes #708

Validation steps

INTEGRATION_TEST=1 elixir --sname aeternity@localhost -S mix test --include iteration test/integration/ae_mdw_web/controllers/aex9_controller_test.exs

@jyeshe jyeshe self-assigned this Jun 28, 2022
@jyeshe jyeshe requested review from sborrazas and thepiwo June 28, 2022 16:45
@jyeshe jyeshe changed the title fix: use block/hash param on aex9 legacy endpoints fix: use height/hash param on aex9 legacy endpoints Jun 28, 2022
@jyeshe jyeshe merged commit f62033c into master Jun 29, 2022
@jyeshe jyeshe deleted the fix-block-account-balances branch June 29, 2022 11:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants