11use {
2- :: alloy:: primitives:: address,
2+ :: alloy:: primitives:: { Address , U256 , address} ,
33 bigdecimal:: { BigDecimal , Zero } ,
44 e2e:: setup:: { eth, * } ,
55 ethcontract:: H160 ,
@@ -184,16 +184,15 @@ async fn test_bypass_verification_for_rfq_quotes(web3: Web3) {
184184 buy_token_destination : BuyTokenDestination :: Erc20 ,
185185 } ,
186186 TradeKind :: Legacy ( LegacyTrade {
187- out_amount : 16380122291179526144u128 . into ( ) ,
187+ out_amount : U256 :: from ( 16380122291179526144u128 ) ,
188188 gas_estimate : Some ( 225000 ) ,
189189 interactions : vec ! [ Interaction {
190- target: H160 :: from_str( "0xdef1c0ded9bec7f1a1670819833240f027b25eff" )
191- . unwrap( ) ,
190+ target: address!( "0xdef1c0ded9bec7f1a1670819833240f027b25eff" ) ,
192191 data: const_hex:: decode( "aa77476c000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c599000000000000000000000000000000000000000000000000e357b42c3a9d8ccf0000000000000000000000000000000000000000000000000000000004d0e79e000000000000000000000000a69babef1ca67a37ffaf7a485dfff3382056e78c0000000000000000000000009008d19f58aabd9ed0d60971565aa8510560ab41000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000066360af101ffffffffffffffffffffffffffffffffffffff0f3f47f166360a8d0000003f0000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000001c66b3383f287dd9c85ad90e7c5a576ea4ba1bdf5a001d794a9afa379e6b2517b47e487a1aef32e75af432cbdbd301ada42754eaeac21ec4ca744afd92732f47540000000000000000000000000000000000000000000000000000000004d0c80f" ) . unwrap( ) ,
193- value: 0 . into ( ) ,
192+ value: U256 :: ZERO ,
194193 } ] ,
195- solver : H160 :: from_str ( "0xe3067c7c27c1038de4e8ad95a83b927d23dfbd99" )
196- . unwrap ( ) ,
194+ solver : address ! ( "0xe3067c7c27c1038de4e8ad95a83b927d23dfbd99" )
195+ ,
197196 tx_origin,
198197 } ) ,
199198 )
@@ -220,7 +219,7 @@ async fn test_bypass_verification_for_rfq_quotes(web3: Web3) {
220219 // `tx_origin: 0x0000` is currently used to bypass quote verification due to an
221220 // implementation detail of zeroex RFQ orders.
222221 // TODO: remove with #2693
223- let verification = verify_trade ( Some ( H160 :: zero ( ) ) ) . await ;
222+ let verification = verify_trade ( Some ( Address :: ZERO ) ) . await ;
224223 assert_eq ! ( & verification. unwrap( ) , & verified_quote) ;
225224
226225 // Trades using any other `tx_origin` can not bypass the verification.
0 commit comments