mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: use Display when formatting addresses and hashes (#6245)
This commit is contained in:
@ -210,7 +210,7 @@ impl Account {
|
||||
/// In case of a mismatch, `Err(Error::Assertion)` is returned.
|
||||
pub fn assert_db(&self, address: Address, tx: &impl DbTx) -> Result<(), Error> {
|
||||
let account = tx.get::<tables::PlainAccountState>(address)?.ok_or_else(|| {
|
||||
Error::Assertion(format!("Expected account ({address:?}) is missing from DB: {self:?}"))
|
||||
Error::Assertion(format!("Expected account ({address}) is missing from DB: {self:?}"))
|
||||
})?;
|
||||
|
||||
assert_equal(self.balance.into(), account.balance, "Balance does not match")?;
|
||||
|
||||
Reference in New Issue
Block a user