Skip to content

Commit

Permalink
Processors to compile and send LoaderV4 CLI commands (solana-labs#33228)
Browse files Browse the repository at this point in the history
* Processors to compile and send LoaderV4 CLI commands

* suppress unused code warning

* clippy fixes

* redeploy program using source buffer

* unify deploy and redeploy to a single function

* clippy fixes

* fixes after testing the CLI frontend
  • Loading branch information
pgarg66 authored Sep 18, 2023
1 parent 196a354 commit 5dbc19c
Show file tree
Hide file tree
Showing 6 changed files with 1,028 additions and 10 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ solana-cli-output = { workspace = true }
solana-client = { workspace = true }
solana-config-program = { workspace = true }
solana-faucet = { workspace = true }
solana-loader-v4-program = { workspace = true }
solana-logger = { workspace = true }
solana-program-runtime = { workspace = true }
solana-pubsub-client = { workspace = true }
Expand Down
1 change: 1 addition & 0 deletions cli/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ pub mod inflation;
pub mod memo;
pub mod nonce;
pub mod program;
pub mod program_v4;
pub mod spend_utils;
pub mod stake;
pub mod test_utils;
Expand Down
2 changes: 1 addition & 1 deletion cli/src/program.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1719,7 +1719,7 @@ fn process_close(
}
}

fn calculate_max_chunk_size<F>(create_msg: &F) -> usize
pub fn calculate_max_chunk_size<F>(create_msg: &F) -> usize
where
F: Fn(u32, Vec<u8>) -> Message,
{
Expand Down
Loading

0 comments on commit 5dbc19c

Please sign in to comment.