From bdab6346379607cd99cdbb1e4b0f639e355035f8 Mon Sep 17 00:00:00 2001 From: Jacek Malec <145967538+jacek-casper@users.noreply.github.com> Date: Thu, 28 Mar 2024 11:41:18 +0000 Subject: [PATCH] Return None in case of an error in get_addressable_entity --- execution_engine_testing/test_support/src/wasm_test_builder.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/execution_engine_testing/test_support/src/wasm_test_builder.rs b/execution_engine_testing/test_support/src/wasm_test_builder.rs index e42f4f10e6..8eeb748f13 100644 --- a/execution_engine_testing/test_support/src/wasm_test_builder.rs +++ b/execution_engine_testing/test_support/src/wasm_test_builder.rs @@ -1248,7 +1248,7 @@ where Key::addressable_entity_key(EntityKindTag::System, entity_hash), &[], ) - .expect("must have value"), + .ok()?, }; if let StoredValue::AddressableEntity(entity) = value {