Skip to content

Commit a07433b

Browse files
committed
Update: fix fmt
1 parent 83ca64c commit a07433b

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

src/database.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,12 @@ impl DB {
5454
value: U256,
5555
) -> PyResult<()> {
5656
match self {
57-
DB::Memory(db) =>
58-
db.insert_account_storage(address, slot, value).map_err(pyerr),
59-
DB::Fork(db) =>
60-
db.insert_account_storage(address, slot, value).map_err(pyerr),
57+
DB::Memory(db) => db
58+
.insert_account_storage(address, slot, value)
59+
.map_err(pyerr),
60+
DB::Fork(db) => db
61+
.insert_account_storage(address, slot, value)
62+
.map_err(pyerr),
6163
}
6264
}
6365

src/evm.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,9 @@ impl EVM {
155155
/// Inserts the provided value for slot of in the database at the specified address
156156
fn insert_account_storage(&mut self, address: &str, index: U256, value: U256) -> PyResult<()> {
157157
let target = addr(address)?;
158-
self.context.db.insert_insert_account_storage(target, index, value)
158+
self.context
159+
.db
160+
.insert_insert_account_storage(target, index, value)
159161
}
160162

161163
/// Set the balance of a given address.

0 commit comments

Comments
 (0)