diff --git a/programs/protocol-contracts-solana/src/lib.rs b/programs/protocol-contracts-solana/src/lib.rs index 1be08b7..3acf0a4 100644 --- a/programs/protocol-contracts-solana/src/lib.rs +++ b/programs/protocol-contracts-solana/src/lib.rs @@ -236,11 +236,12 @@ pub mod gateway { }, signer_seeds, ); - transfer(xfer_ctx, amount)?; - msg!("withdraw spl token successfully"); pda.nonce += 1; + transfer(xfer_ctx, amount)?; + msg!("withdraw spl token successfully"); + Ok(()) } }