You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the singlepass backend in wasmer, there is an issue when gas runs out.
It should report it as an instance of RuntimeError::Metering, but instead it returns RuntimeError::InvokeError(InvokeError::FailedWithNoError)which is explicitly documented as indicating a bug. When the issue we opened in wasmer is closed, and we update to a version of wasmer that fixes the issue, we need to change the variant that we match against to the correct variant that indicates running out of gas.
NOTE: This will probably mean also downcasting the object inside of RuntimeError::Metering and invastigating it, not just matching against the Metering variant.
The text was updated successfully, but these errors were encountered:
tl;dr
This issue is for fixing this TODO, which depends on wasmerio/wasmer fixing this issue wasmerio/wasmer#1452
cosmwasm/packages/vm/src/errors.rs
Line 127 in 042c00a
Description
When using the singlepass backend in wasmer, there is an issue when gas runs out.
It should report it as an instance of
RuntimeError::Metering
, but instead it returnsRuntimeError::InvokeError(InvokeError::FailedWithNoError)
which is explicitly documented as indicating a bug. When the issue we opened in wasmer is closed, and we update to a version of wasmer that fixes the issue, we need to change the variant that we match against to the correct variant that indicates running out of gas.NOTE: This will probably mean also downcasting the object inside of
RuntimeError::Metering
and invastigating it, not just matching against theMetering
variant.The text was updated successfully, but these errors were encountered: