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 executing this test in singlepass, we get a GasDepletion error, which makes no sense:
#[test]fnhandle_panic(){letmut deps = mock_instance(WASM,&[]);let(init_msg, creator) = make_init_msg();let init_env = mock_env(creator.as_str(),&[]);let init_res:InitResponse = init(&mut deps, init_env, init_msg).unwrap();assert_eq!(0, init_res.messages.len());let handle_env = mock_env(creator.as_str(),&[]);// panic inside contract should not panic out here// Note: we need to use the production-call, not the testing call (which unwraps any vm error)let handle_res = call_handle::<_,_,_,Empty>(&mut deps,&handle_env,&to_vec(&HandleMsg::Panic{}).unwrap(),);match handle_res.unwrap_err(){VmError::RuntimeErr{ .. } => {}
err => panic!("Unexpected error: {:?}", err),}}
The text was updated successfully, but these errors were encountered:
When executing this test in singlepass, we get a GasDepletion error, which makes no sense:
The text was updated successfully, but these errors were encountered: