diff --git a/sdk/src/account.rs b/sdk/src/account.rs index 4c45c9a581..138d4fbaef 100644 --- a/sdk/src/account.rs +++ b/sdk/src/account.rs @@ -247,7 +247,7 @@ fn debug_fmt(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(),