@@ -81,7 +81,6 @@ mod tests {
8181 use tokio:: time:: sleep;
8282 use tower:: { Service , ServiceBuilder , ServiceExt } ;
8383
84- use alloy:: primitives:: { address, Address } ;
8584 use axum:: {
8685 body:: Body ,
8786 http:: { Request , Response } ,
@@ -97,7 +96,7 @@ mod tests {
9796 ReceiptWithState ,
9897 } ,
9998 } ;
100- use test_assets:: { create_signed_receipt, TAP_EIP712_DOMAIN } ;
99+ use test_assets:: { create_signed_receipt, SignedReceiptRequest , TAP_EIP712_DOMAIN } ;
101100 use tower_http:: auth:: AsyncRequireAuthorizationLayer ;
102101
103102 use crate :: {
@@ -108,8 +107,6 @@ mod tests {
108107 tap:: IndexerTapContext ,
109108 } ;
110109
111- const ALLOCATION_ID : Address = address ! ( "deadbeefcafebabedeadbeefcafebabedeadbeef" ) ;
112-
113110 #[ fixture]
114111 fn metric ( ) -> & ' static prometheus:: CounterVec {
115112 let registry = prometheus:: Registry :: new ( ) ;
@@ -175,7 +172,7 @@ mod tests {
175172 ) {
176173 let mut service = service ( metric, pgpool. clone ( ) ) . await ;
177174
178- let receipt = create_signed_receipt ( ALLOCATION_ID , 1 , 1 , 1 ) . await ;
175+ let receipt = create_signed_receipt ( SignedReceiptRequest :: builder ( ) . build ( ) ) . await ;
179176
180177 // check with receipt
181178 let mut req = Request :: new ( Body :: default ( ) ) ;
@@ -226,7 +223,7 @@ mod tests {
226223 // default labels, all empty
227224 let labels: MetricLabels = Arc :: new ( TestLabel ) ;
228225
229- let mut receipt = create_signed_receipt ( ALLOCATION_ID , 1 , 1 , 1 ) . await ;
226+ let mut receipt = create_signed_receipt ( SignedReceiptRequest :: builder ( ) . build ( ) ) . await ;
230227 // change the nonce to make the receipt invalid
231228 receipt. message . nonce = FAILED_NONCE ;
232229 let mut req = Request :: new ( Body :: default ( ) ) ;
0 commit comments