-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#52 Implement create-start-evm Subcommand
- Loading branch information
1 parent
98d76e4
commit 37dec5b
Showing
6 changed files
with
44 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// ========================================================================= | ||
// Deploy evm_loader from buffer account | ||
// ========================================================================= | ||
use solana_sdk::{ | ||
bpf_loader_upgradeable, | ||
}; | ||
use crate::prelude::*; | ||
|
||
pub fn create_upgrade_evm(client: &Client, | ||
transaction_inserter: &mut ProposalTransactionInserter, | ||
cfg: &Configuration, | ||
buffer_pubkey: Pubkey, | ||
) -> Result<(), ScriptError> { | ||
|
||
transaction_inserter.insert_transaction_checked( | ||
&format!("Upgrade evm_loader from buffer at address {}", buffer_pubkey), | ||
vec![ | ||
bpf_loader_upgradeable::upgrade( | ||
&cfg.wallet.neon_evm_program_id, | ||
&buffer_pubkey, | ||
&cfg.maintenance_program_address, | ||
&client.payer.pubkey(), | ||
).into(), | ||
], | ||
) | ||
|
||
} |
44 changes: 0 additions & 44 deletions
44
launch-script/src/proposals/deploy_evm_loader_from_buffer.rs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters