Add cli deploy tests (bp #15116) (#15147)

* Add cli deploy tests (#15116)

(cherry picked from commit 210514b136)

* fix conflicts

Co-authored-by: Jack May <jack@solana.com>
This commit is contained in:
mergify[bot]
2021-02-09 05:42:43 +00:00
committed by GitHub
parent 0c2dcd759c
commit 9be3e00546
3 changed files with 331 additions and 5 deletions

View File

@@ -1557,7 +1557,7 @@ impl fmt::Display for CliUpgradeableProgram {
pub struct CliUpgradeableBuffer {
pub address: String,
pub authority: String,
pub program_len: usize,
pub data_len: usize,
}
impl QuietDisplay for CliUpgradeableBuffer {}
impl VerboseDisplay for CliUpgradeableBuffer {}
@@ -1568,8 +1568,8 @@ impl fmt::Display for CliUpgradeableBuffer {
writeln_name_value(f, "Authority:", &self.authority)?;
writeln_name_value(
f,
"Program Length:",
&format!("{:?} ({:#x?}) bytes", self.program_len, self.program_len),
"Data Length:",
&format!("{:?} ({:#x?}) bytes", self.data_len, self.data_len),
)?;
Ok(())
}