Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Commit 258c920

Browse files
HaoranYiHaoranYi
andauthored
fix buffer size for updateable program buffer rent exempt fee calculation (#34781)
fix buffer size for updateable program buffer rent exempt fee calculation Co-authored-by: HaoranYi <haoran.yi@solana.com>
1 parent 711215f commit 258c920

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

runtime/src/loader_utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ pub fn load_upgradeable_buffer<T: Client>(
116116
let program = load_program_from_file(name);
117117
let buffer_pubkey = buffer_keypair.pubkey();
118118
let buffer_authority_pubkey = buffer_authority_keypair.pubkey();
119-
let program_buffer_bytes = UpgradeableLoaderState::size_of_programdata(program.len());
119+
let program_buffer_bytes = UpgradeableLoaderState::size_of_buffer(program.len());
120120

121121
bank_client
122122
.send_and_confirm_message(

0 commit comments

Comments
 (0)