File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ use tap_core::{
27
27
signed_message:: EIP712SignedMessage ,
28
28
} ;
29
29
use thegraph_core:: Address ;
30
- use tracing:: { error, warn} ;
30
+ use tracing:: { debug , error, warn} ;
31
31
32
32
use crate :: { agent:: sender_account:: ReceiptFees , lazy_static} ;
33
33
@@ -680,14 +680,19 @@ impl SenderAllocationState {
680
680
let receipt = received_receipt. signed_receipt ( ) ;
681
681
let allocation_id = receipt. message . allocation_id ;
682
682
let encoded_signature = receipt. signature . as_bytes ( ) . to_vec ( ) ;
683
-
683
+ let receipt_error = received_receipt . clone ( ) . error ( ) . to_string ( ) ;
684
684
let receipt_signer = receipt
685
685
. recover_signer ( & self . domain_separator )
686
686
. map_err ( |e| {
687
687
error ! ( "Failed to recover receipt signer: {}" , e) ;
688
688
anyhow ! ( e)
689
689
} ) ?;
690
-
690
+ debug ! (
691
+ "Receipt for allocation {} and signer {} failed reason: {}" ,
692
+ allocation_id. encode_hex( ) ,
693
+ receipt_signer. encode_hex( ) ,
694
+ receipt_error
695
+ ) ;
691
696
sqlx:: query!(
692
697
r#"
693
698
INSERT INTO scalar_tap_receipts_invalid (
You can’t perform that action at this time.
0 commit comments