Skip to content

Commit a45df74

Browse files
two-heartripatel-fd
authored andcommitted
runtime: fix loader_v3_deploy offset calculation
1 parent a4675d6 commit a45df74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/flamenco/runtime/fd_runtime.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2571,7 +2571,7 @@ fd_migrate_builtin_to_core_bpf( fd_exec_slot_ctx_t * slot_ctx,
25712571
https://github.com/anza-xyz/agave/blob/v2.1.0/runtime/src/bank/builtins/core_bpf_migration/mod.rs#L268-L271 */
25722572
err = fd_directly_invoke_loader_v3_deploy( slot_ctx,
25732573
new_target_program_data_account->vt->get_data( new_target_program_data_account ) + PROGRAMDATA_METADATA_SIZE,
2574-
new_target_program_account->vt->get_data_len( new_target_program_data_account ) - PROGRAMDATA_METADATA_SIZE,
2574+
new_target_program_data_account->vt->get_data_len( new_target_program_data_account ) - PROGRAMDATA_METADATA_SIZE,
25752575
runtime_spad );
25762576
if( FD_UNLIKELY( err ) ) {
25772577
FD_LOG_WARNING(( "Failed to deploy program %s", FD_BASE58_ENC_32_ALLOCA( builtin_program_id ) ));

0 commit comments

Comments
 (0)