@@ -150,7 +150,11 @@ impl DenyListCheck {
150150
151151#[ async_trait:: async_trait]
152152impl Check for DenyListCheck {
153- async fn check ( & self , receipt : & ReceiptWithState < Checking > ) -> CheckResult {
153+ async fn check (
154+ & self ,
155+ _: & tap_core:: receipt:: Context ,
156+ receipt : & ReceiptWithState < Checking > ,
157+ ) -> CheckResult {
154158 let receipt_signer = receipt
155159 . signed_receipt ( )
156160 . recover_signer ( & self . domain_separator )
@@ -195,7 +199,7 @@ mod tests {
195199 use std:: str:: FromStr ;
196200
197201 use alloy:: hex:: ToHexExt ;
198- use tap_core:: receipt:: ReceiptWithState ;
202+ use tap_core:: receipt:: { Context , ReceiptWithState } ;
199203
200204 use crate :: test_vectors:: { self , create_signed_receipt, TAP_SENDER } ;
201205
@@ -241,7 +245,10 @@ mod tests {
241245 let checking_receipt = ReceiptWithState :: new ( signed_receipt) ;
242246
243247 // Check that the receipt is rejected
244- assert ! ( deny_list_check. check( & checking_receipt) . await . is_err( ) ) ;
248+ assert ! ( deny_list_check
249+ . check( & Context :: new( ) , & checking_receipt)
250+ . await
251+ . is_err( ) ) ;
245252 }
246253
247254 #[ sqlx:: test( migrations = "../migrations" ) ]
@@ -255,7 +262,10 @@ mod tests {
255262 // Check that the receipt is valid
256263 let checking_receipt = ReceiptWithState :: new ( signed_receipt) ;
257264
258- deny_list_check. check ( & checking_receipt) . await . unwrap ( ) ;
265+ deny_list_check
266+ . check ( & Context :: new ( ) , & checking_receipt)
267+ . await
268+ . unwrap ( ) ;
259269
260270 // Add the sender to the denylist
261271 sqlx:: query!(
@@ -271,7 +281,10 @@ mod tests {
271281
272282 // Check that the receipt is rejected
273283 tokio:: time:: sleep ( std:: time:: Duration :: from_millis ( 100 ) ) . await ;
274- assert ! ( deny_list_check. check( & checking_receipt) . await . is_err( ) ) ;
284+ assert ! ( deny_list_check
285+ . check( & Context :: new( ) , & checking_receipt)
286+ . await
287+ . is_err( ) ) ;
275288
276289 // Remove the sender from the denylist
277290 sqlx:: query!(
@@ -287,6 +300,9 @@ mod tests {
287300
288301 // Check that the receipt is valid again
289302 tokio:: time:: sleep ( std:: time:: Duration :: from_millis ( 100 ) ) . await ;
290- deny_list_check. check ( & checking_receipt) . await . unwrap ( ) ;
303+ deny_list_check
304+ . check ( & Context :: new ( ) , & checking_receipt)
305+ . await
306+ . unwrap ( ) ;
291307 }
292308}
0 commit comments