File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ pub fn increment_nonce(
1515 recovery_id : u8 ,
1616 message_hash : [ u8 ; 32 ] ,
1717 nonce : u64 ,
18+ failure_reason : String ,
1819) -> Result < ( ) > {
1920 let pda = & mut ctx. accounts . pda ;
2021
@@ -30,6 +31,8 @@ pub fn increment_nonce(
3031 recovery_id,
3132 ) ?;
3233
34+ msg ! ( "Failure reason: {}" , failure_reason) ;
35+
3336 Ok ( ( ) )
3437}
3538
Original file line number Diff line number Diff line change @@ -42,13 +42,15 @@ pub mod gateway {
4242 /// * `recovery_id` - The recovery ID for signature verification.
4343 /// * `message_hash` - Message hash for signature verification.
4444 /// * `nonce` - The current nonce value.
45+ /// * `failure_reason` - The reason for the failure of original outbound.
4546 pub fn increment_nonce (
4647 ctx : Context < IncrementNonce > ,
4748 amount : u64 ,
4849 signature : [ u8 ; 64 ] ,
4950 recovery_id : u8 ,
5051 message_hash : [ u8 ; 32 ] ,
5152 nonce : u64 ,
53+ failure_reason : String ,
5254 ) -> Result < ( ) > {
5355 instructions:: execute:: increment_nonce (
5456 ctx,
@@ -57,6 +59,7 @@ pub mod gateway {
5759 recovery_id,
5860 message_hash,
5961 nonce,
62+ failure_reason,
6063 )
6164 }
6265
You can’t perform that action at this time.
0 commit comments