Fix minimum balance when deploying program (#32129)

This commit is contained in:
CanardMandarin 2023-06-14 19:44:20 +02:00 committed by GitHub
parent c01250fc58
commit 2b5594a409
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -994,7 +994,7 @@ fn process_program_deploy(
program_len * 2
};
let minimum_balance = rpc_client.get_minimum_balance_for_rent_exemption(
UpgradeableLoaderState::size_of_programdata(program_len),
UpgradeableLoaderState::size_of_programdata(programdata_len),
)?;
let result = if do_deploy {