Display actual account length (#15875) (#15884)

(cherry picked from commit 60e5fd11c9)

Co-authored-by: Jack May <jack@solana.com>
This commit is contained in:
mergify[bot]
2021-03-16 01:01:25 +00:00
committed by GitHub
parent 3b3ec3313f
commit 5af1d48be8

View File

@ -247,7 +247,7 @@ fn debug_fmt<T: ReadableAccount>(item: &T, f: &mut fmt::Formatter<'_>) -> fmt::R
f,
"Account {{ lamports: {} data.len: {} owner: {} executable: {} rent_epoch: {}{} }}",
item.lamports(),
data_len,
item.data().len(),
item.owner(),
item.executable(),
item.rent_epoch(),