diff --git a/cep18/src/utils.rs b/cep18/src/utils.rs index 60ecbfa..bb6d74a 100644 --- a/cep18/src/utils.rs +++ b/cep18/src/utils.rs @@ -108,7 +108,8 @@ pub fn get_optional_named_arg_with_user_errors( ) -> Option { match get_named_arg_with_user_errors::(name, Cep18Error::Phantom, invalid) { Ok(val) => Some(val), - Err(_) => None, + Err(Cep18Error::Phantom) => None, + Err(_) => runtime::revert(invalid), } }