We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fabb85e commit fea770cCopy full SHA for fea770c
src/libfuncs/starknet/testing.rs
@@ -1,7 +1,7 @@
1
#![cfg(feature = "with-cheatcode")]
2
3
use crate::{
4
- error::Result,
+ error::{panic::ToNativeAssertError, Result},
5
libfuncs::LibfuncHelper,
6
metadata::{runtime_bindings::RuntimeBindingsMeta, MetadataStorage},
7
utils::{get_integer_layout, ProgramRegistryExt},
@@ -100,7 +100,7 @@ pub fn build<'ctx, 'this>(
100
// Call runtime cheatcode syscall wrapper
101
metadata
102
.get_mut::<RuntimeBindingsMeta>()
103
- .expect("Runtime library not available.")
+ .to_native_assert_error("runtime bindings should be available")?
104
.vtable_cheatcode(
105
context,
106
helper,
0 commit comments