diff --git a/src/constants/types.rs b/src/constants/types.rs index 934a5e7b..64d8ab79 100644 --- a/src/constants/types.rs +++ b/src/constants/types.rs @@ -674,7 +674,7 @@ impl wasm_bindgen::convert::FromWasmAbi for MarketResourceType { // try with IntershardResourceType match IntershardResourceType::from_js_value(&s) { Some(r) => Self::IntershardResource(r), - None => Self::Resource(ResourceType::__Nonexhaustive), + None => panic!("unmapped market resource"), } } }