@@ -9,7 +9,7 @@ use crate::generated::types::NonceState;
99use crate :: generated:: types:: NonceVersion ;
1010use borsh:: BorshDeserialize ;
1111use borsh:: BorshSerialize ;
12- use solana_program :: pubkey :: Pubkey ;
12+ use solana_pubkey :: Pubkey ;
1313
1414#[ derive( BorshSerialize , BorshDeserialize , Clone , Debug , Eq , PartialEq ) ]
1515#[ cfg_attr( feature = "serde" , derive( serde:: Serialize , serde:: Deserialize ) ) ]
@@ -39,12 +39,10 @@ impl Nonce {
3939 }
4040}
4141
42- impl < ' a > TryFrom < & solana_program :: account_info :: AccountInfo < ' a > > for Nonce {
42+ impl < ' a > TryFrom < & solana_account_info :: AccountInfo < ' a > > for Nonce {
4343 type Error = std:: io:: Error ;
4444
45- fn try_from (
46- account_info : & solana_program:: account_info:: AccountInfo < ' a > ,
47- ) -> Result < Self , Self :: Error > {
45+ fn try_from ( account_info : & solana_account_info:: AccountInfo < ' a > ) -> Result < Self , Self :: Error > {
4846 let mut data: & [ u8 ] = & ( * account_info. data ) . borrow ( ) ;
4947 Self :: deserialize ( & mut data)
5048 }
@@ -53,7 +51,7 @@ impl<'a> TryFrom<&solana_program::account_info::AccountInfo<'a>> for Nonce {
5351#[ cfg( feature = "fetch" ) ]
5452pub fn fetch_nonce (
5553 rpc : & solana_client:: rpc_client:: RpcClient ,
56- address : & solana_program :: pubkey :: Pubkey ,
54+ address : & solana_pubkey :: Pubkey ,
5755) -> Result < crate :: shared:: DecodedAccount < Nonce > , std:: io:: Error > {
5856 let accounts = fetch_all_nonce ( rpc, & [ * address] ) ?;
5957 Ok ( accounts[ 0 ] . clone ( ) )
@@ -62,7 +60,7 @@ pub fn fetch_nonce(
6260#[ cfg( feature = "fetch" ) ]
6361pub fn fetch_all_nonce (
6462 rpc : & solana_client:: rpc_client:: RpcClient ,
65- addresses : & [ solana_program :: pubkey :: Pubkey ] ,
63+ addresses : & [ solana_pubkey :: Pubkey ] ,
6664) -> Result < Vec < crate :: shared:: DecodedAccount < Nonce > > , std:: io:: Error > {
6765 let accounts = rpc
6866 . get_multiple_accounts ( addresses)
@@ -87,7 +85,7 @@ pub fn fetch_all_nonce(
8785#[ cfg( feature = "fetch" ) ]
8886pub fn fetch_maybe_nonce (
8987 rpc : & solana_client:: rpc_client:: RpcClient ,
90- address : & solana_program :: pubkey :: Pubkey ,
88+ address : & solana_pubkey :: Pubkey ,
9189) -> Result < crate :: shared:: MaybeAccount < Nonce > , std:: io:: Error > {
9290 let accounts = fetch_all_maybe_nonce ( rpc, & [ * address] ) ?;
9391 Ok ( accounts[ 0 ] . clone ( ) )
@@ -96,7 +94,7 @@ pub fn fetch_maybe_nonce(
9694#[ cfg( feature = "fetch" ) ]
9795pub fn fetch_all_maybe_nonce (
9896 rpc : & solana_client:: rpc_client:: RpcClient ,
99- addresses : & [ solana_program :: pubkey :: Pubkey ] ,
97+ addresses : & [ solana_pubkey :: Pubkey ] ,
10098) -> Result < Vec < crate :: shared:: MaybeAccount < Nonce > > , std:: io:: Error > {
10199 let accounts = rpc
102100 . get_multiple_accounts ( addresses)
0 commit comments