Skip to content

Commit a3e4a3d

Browse files
two-heartkbhargava-jump
authored andcommitted
flamenco: fix log in fd_system_program_advance_nonce_account
We want to be log compatible with agave. This seems like a copy paste oversight from another function.
1 parent 6d0c3c4 commit a3e4a3d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/flamenco/runtime/program/fd_system_program_nonce.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,9 @@ fd_system_program_advance_nonce_account( fd_exec_instr_ctx_t * ctx,
142142
/* https://github.com/solana-labs/solana/blob/v1.17.23/programs/system/src/system_instruction.rs#L25-L32 */
143143

144144
if( FD_UNLIKELY( !fd_instr_acc_is_writable_idx( ctx->instr, instr_acc_idx ) ) ) {
145-
/* Max msg_sz: 52 - 2 + 45 = 95 < 127 => we can use printf */
145+
/* Max msg_sz: 50 - 2 + 45 = 93 < 127 => we can use printf */
146146
fd_log_collector_printf_dangerous_max_127( ctx,
147-
"Authorize nonce account: Account %s must be writable", FD_BASE58_ENC_32_ALLOCA( account->acct->pubkey) );
147+
"Advance nonce account: Account %s must be writable", FD_BASE58_ENC_32_ALLOCA( account->acct->pubkey) );
148148
return FD_EXECUTOR_INSTR_ERR_INVALID_ARG;
149149
}
150150

0 commit comments

Comments
 (0)