@@ -119,7 +119,7 @@ fn wallet_for_allocation(
119119mod tests {
120120 use std:: str:: FromStr ;
121121
122- use alloy:: primitives:: U256 ;
122+ use alloy:: primitives:: { address , U256 } ;
123123 use indexer_allocation:: { Allocation , AllocationStatus , SubgraphDeployment } ;
124124 use test_assets:: DISPUTE_MANAGER_ADDRESS ;
125125 use test_log:: test;
@@ -142,7 +142,7 @@ mod tests {
142142 )
143143 . unwrap( )
144144 . address( ) ,
145- Address :: from_str ( "0xfa44c72b753a66591f241c7dc04e8178c30e13af" ) . unwrap ( )
145+ address! ( "fa44c72b753a66591f241c7dc04e8178c30e13af" )
146146 ) ;
147147
148148 assert_eq ! (
@@ -157,7 +157,7 @@ mod tests {
157157 )
158158 . unwrap( )
159159 . address( ) ,
160- Address :: from_str ( "0xa171cd12c3dde7eb8fe7717a0bcd06f3ffa65658" ) . unwrap ( )
160+ address! ( "a171cd12c3dde7eb8fe7717a0bcd06f3ffa65658" )
161161 ) ;
162162 }
163163
@@ -166,7 +166,7 @@ mod tests {
166166 // Note that we use `derive_key_pair` to derive the private key
167167
168168 let allocation = Allocation {
169- id : Address :: from_str ( "0xa171cd12c3dde7eb8fe7717a0bcd06f3ffa65658" ) . unwrap ( ) ,
169+ id : address ! ( "a171cd12c3dde7eb8fe7717a0bcd06f3ffa65658" ) ,
170170 status : AllocationStatus :: Null ,
171171 subgraph_deployment : SubgraphDeployment {
172172 id : DeploymentId :: from_str (
@@ -213,7 +213,7 @@ mod tests {
213213
214214 let allocation = Allocation {
215215 // Purposefully wrong address
216- id : Address :: from_str ( "0xdeadbeefcafebabedeadbeefcafebabedeadbeef" ) . unwrap ( ) ,
216+ id : address ! ( "deadbeefcafebabedeadbeefcafebabedeadbeef" ) ,
217217 status : AllocationStatus :: Null ,
218218 subgraph_deployment : SubgraphDeployment {
219219 id : DeploymentId :: from_str (
0 commit comments