@@ -11,19 +11,15 @@ use {
1111 solana_remote_wallet:: remote_wallet:: RemoteWalletManager ,
1212 solana_sdk:: {
1313 commitment_config:: CommitmentConfig ,
14- instruction:: AccountMeta ,
1514 native_token:: Sol ,
16- signature:: { Keypair , Signer } ,
15+ signature:: Signer ,
1716 } ,
1817 std:: { env, process:: exit, sync:: Arc } ,
1918} ;
2019pub mod clparse;
2120pub mod prelude;
2221pub mod utils;
2322
24- /// Space allocated for account state
25- const ACCOUNT_STATE_SPACE : usize = 1024 ;
26-
2723struct Config {
2824 commitment_config : CommitmentConfig ,
2925 default_signer : Box < dyn Signer > ,
@@ -727,20 +723,6 @@ mod test {
727723
728724 use { super :: * , solana_test_validator:: * } ;
729725
730- // Tests commented out as they depend on removed functions
731- /*
732- #[test]
733- fn test_ping() {
734- let (test_validator, payer) = TestValidatorGenesis::default().start();
735- let rpc_client = test_validator.get_rpc_client();
736-
737- assert!(matches!(
738- ping_instruction(&rpc_client, &payer, CommitmentConfig::confirmed()),
739- Ok(_)
740- ));
741- }
742- */
743-
744726 #[ test]
745727 fn test_borsh ( ) {
746728 #[ repr( C ) ]
@@ -756,8 +738,9 @@ mod test {
756738 primary_sale_happened : Some ( true ) ,
757739 } ;
758740 let bout = faux. try_to_vec ( ) . unwrap ( ) ;
759- println ! ( "{:?}" , bout) ;
760741 let in_faux = UpdateMetadataAccountArgs :: try_from_slice ( & bout) . unwrap ( ) ;
761- println ! ( "{:?}" , in_faux) ;
742+
743+ // Assert that the deserialized data matches the original
744+ assert_eq ! ( faux, in_faux) ;
762745 }
763- }
746+ }
0 commit comments