Skip to content

Commit fea770c

Browse files
Remove expect (#1414)
1 parent fabb85e commit fea770c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libfuncs/starknet/testing.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#![cfg(feature = "with-cheatcode")]
22

33
use crate::{
4-
error::Result,
4+
error::{panic::ToNativeAssertError, Result},
55
libfuncs::LibfuncHelper,
66
metadata::{runtime_bindings::RuntimeBindingsMeta, MetadataStorage},
77
utils::{get_integer_layout, ProgramRegistryExt},
@@ -100,7 +100,7 @@ pub fn build<'ctx, 'this>(
100100
// Call runtime cheatcode syscall wrapper
101101
metadata
102102
.get_mut::<RuntimeBindingsMeta>()
103-
.expect("Runtime library not available.")
103+
.to_native_assert_error("runtime bindings should be available")?
104104
.vtable_cheatcode(
105105
context,
106106
helper,

0 commit comments

Comments
 (0)