@@ -527,6 +527,7 @@ async fn test_evm_end_to_end_counter(config: impl LineraNetConfig) -> Result<()>
527527#[ cfg_attr( feature = "remote-net" , test_case( RemoteNetTestingConfig :: new( None ) ; "remote_net_grpc" ) ) ]
528528#[ test_log:: test( tokio:: test) ]
529529async fn test_evm_end_to_end_balance_and_transfer ( config : impl LineraNetConfig ) -> Result < ( ) > {
530+ use alloy_primitives:: U256 ;
530531 use alloy_sol_types:: { sol, SolCall } ;
531532 use linera_base:: vm:: EvmQuery ;
532533 use linera_execution:: {
@@ -612,12 +613,14 @@ async fn test_evm_end_to_end_balance_and_transfer(config: impl LineraNetConfig)
612613 let query1 = get_balanceCall { account : address1 } ;
613614 let query1 = EvmQuery :: Query ( query1. abi_encode ( ) ) ;
614615 let result = application. run_json_query ( query1. clone ( ) ) . await ?;
615- assert_eq ! ( read_evm_u256_entry( result) , balance1. into( ) ) ;
616+ let balance1_256: U256 = balance1. into ( ) ;
617+ assert_eq ! ( read_evm_u256_entry( result) , balance1_256) ;
616618
617619 let query2 = get_balanceCall { account : address2 } ;
618620 let query2 = EvmQuery :: Query ( query2. abi_encode ( ) ) ;
619621 let result = application. run_json_query ( query2. clone ( ) ) . await ?;
620- assert_eq ! ( read_evm_u256_entry( result) , balance2. into( ) ) ;
622+ let balance2_256: U256 = balance2. into ( ) ;
623+ assert_eq ! ( read_evm_u256_entry( result) , balance2_256) ;
621624
622625 // Transfering amount
623626
@@ -641,10 +644,12 @@ async fn test_evm_end_to_end_balance_and_transfer(config: impl LineraNetConfig)
641644 assert_eq ! ( balance_app_after, balance_app - amount) ;
642645
643646 let result = application. run_json_query ( query1) . await ?;
644- assert_eq ! ( read_evm_u256_entry( result) , balance1_after. into( ) ) ;
647+ let balance1_after_256: U256 = balance1_after. into ( ) ;
648+ assert_eq ! ( read_evm_u256_entry( result) , balance1_after_256) ;
645649
646650 let result = application. run_json_query ( query2. clone ( ) ) . await ?;
647- assert_eq ! ( read_evm_u256_entry( result) , balance2_after. into( ) ) ;
651+ let balance2_after_256: U256 = balance2_after. into ( ) ;
652+ assert_eq ! ( read_evm_u256_entry( result) , balance2_after_256) ;
648653
649654 // Winding down
650655
0 commit comments