Display actual account length (#15875)

This commit is contained in:
Jack May
2021-03-15 14:17:56 -07:00
committed by GitHub
parent 699888dfb3
commit 60e5fd11c9

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(),