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>
This commit is contained in:
HaoranYi 2024-01-16 10:04:56 -05:00 committed by GitHub
parent 711215f832
commit 258c920cf9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ pub fn load_upgradeable_buffer<T: Client>(
let program = load_program_from_file(name);
let buffer_pubkey = buffer_keypair.pubkey();
let buffer_authority_pubkey = buffer_authority_keypair.pubkey();
let program_buffer_bytes = UpgradeableLoaderState::size_of_programdata(program.len());
let program_buffer_bytes = UpgradeableLoaderState::size_of_buffer(program.len());
bank_client
.send_and_confirm_message(