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
The problem occurs when the start function and call the ABI, it looks like the host environment isn't yet initialized and functions like env.remaining_points.as_ref() return an error.
We can reproduce with that kind of code:
let resolver:ImportObject = imports!{"my_api" => {// other stuff"foo" => Function::new_native_with_env(&store, env.clone(), foo),
},
};// [....]fnfoo(env:&Env){
env.remaining_points.as_ref().unwrap()// <-- panic if foo is called in the start function}
The text was updated successfully, but these errors were encountered:
The problem occurs when the
start function
and call the ABI, it looks like the host environment isn't yet initialized and functions likeenv.remaining_points.as_ref()
return an error.We can reproduce with that kind of code:
The text was updated successfully, but these errors were encountered: