diff --git a/sdk/src/types/block/macro.rs b/sdk/src/types/block/macro.rs index 74b74a6ec8..9ddf21391e 100644 --- a/sdk/src/types/block/macro.rs +++ b/sdk/src/types/block/macro.rs @@ -343,7 +343,7 @@ macro_rules! def_is_as_opt { if let Self::$name(v) = self { v } else { - panic!("{} called on a non-{} {}", stringify!([]), stringify!([<$name>]), stringify!($type:snake)); + panic!("{} called on a non-{} {}", stringify!([]), stringify!([<$name>]), stringify!([<$type:snake>])); } }