File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,12 @@ async fn main() -> anyhow::Result<()> {
101101 PhoenixCLICommand :: GetTransaction {
102102 signature,
103103 } => {
104- let dummy_market_pubkey = Pubkey :: from_str ( "14CAwu3LiBBk5fcHGdTsFyVxDwvpgFiSfDwgPJxECcE5" ) . unwrap ( ) ;
104+ let mut dummy_market_pubkey = Pubkey :: from_str ( "14CAwu3LiBBk5fcHGdTsFyVxDwvpgFiSfDwgPJxECcE5" ) . unwrap ( ) ;
105+ let rpc_client = RpcClient :: new ( network_url. to_string ( ) ) ;
106+ let acc = rpc_client. get_account ( & dummy_market_pubkey) . await ;
107+ if acc. is_err ( ) {
108+ dummy_market_pubkey = Pubkey :: from_str ( "7EBrdSbDLvAJEMjigvSrBGkuRNdH9whvzkeojsHSVQib" ) . unwrap ( ) ;
109+ }
105110 let mut sdk = SDKClient :: new ( & dummy_market_pubkey, & payer, network_url) . await ;
106111 process_get_transaction ( & signature, & mut sdk) . await ?
107112 }
You can’t perform that action at this time.
0 commit comments