We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2884ae commit 11399aeCopy full SHA for 11399ae
sdk/pubkey/src/lib.rs
@@ -2,16 +2,15 @@ pub use five8_const::decode_32_const;
2
pub use pinocchio;
3
4
#[macro_export]
5
-#[deprecated(since = "0.1.1", note = "Please use `from_str` function instead.")]
6
macro_rules! declare_pubkey {
7
- ( $id:expr ) => {
+ ( $id:literal ) => {
8
$crate::decode($id)
9
};
10
}
11
12
13
macro_rules! declare_id {
14
15
#[doc = "The const program ID."]
16
pub const ID: $crate::pinocchio::pubkey::Pubkey = $crate::from_str($id);
17
0 commit comments