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:
parent
711215f832
commit
258c920cf9
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue