Skip to content

Commit a7fef8c

Browse files
committed
Use literal designator
1 parent b2884ae commit a7fef8c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sdk/pubkey/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
pub use five8_const::decode_32_const;
22
pub use pinocchio;
33

4+
// Convenience macro to define a static public key.
45
#[macro_export]
5-
#[deprecated(since = "0.1.1", note = "Please use `from_str` function instead.")]
66
macro_rules! declare_pubkey {
7-
( $id:expr ) => {
8-
$crate::decode($id)
7+
( $id:literal ) => {
8+
$crate::from_str($id)
99
};
1010
}
1111

0 commit comments

Comments
 (0)