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, f,
"Account {{ lamports: {} data.len: {} owner: {} executable: {} rent_epoch: {}{} }}", "Account {{ lamports: {} data.len: {} owner: {} executable: {} rent_epoch: {}{} }}",
item.lamports(), item.lamports(),
data_len, item.data().len(),
item.owner(), item.owner(),
item.executable(), item.executable(),
item.rent_epoch(), item.rent_epoch(),