-
Notifications
You must be signed in to change notification settings - Fork 287
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
[BUG] Out of gas causes panic when external contract store query executed #431
Labels
bug
Something isn't working
Comments
8 tasks
@YunSuk-Yeo you probably want this fix upstream in wasmd to be safe in the future. Please be so kind and open issues in the wasmd repo as well for the 🐛 🐛 . |
@alpe got it I will keep share the problem we can help wasmd. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Core uses gas meter to limit unexpected query DDoS attacks to protect node operators from the external contract query. However, gas meter was made for Tx execution process, so it just occurs panic instead of clean error.
To Reproduce
set query_gas_limit = 0 in wasm.toml and execute query contract-store
Context & versions
v0.4.0
(if applicable) suggested solution
Append recover statement before executing external query
The text was updated successfully, but these errors were encountered: