From e08d94c6ad8f70d99c55b8acdd275b598234190a Mon Sep 17 00:00:00 2001 From: Hack666r Date: Wed, 25 Dec 2024 23:42:23 +0100 Subject: [PATCH 1/2] typo fix db.go Signed-off-by: Hack666r --- db/db.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/db.go b/db/db.go index 6475dc5e19..44724f1081 100644 --- a/db/db.go +++ b/db/db.go @@ -108,7 +108,7 @@ func discardTxnOnPanic(txn Transaction) { p := recover() if p != nil { if err := txn.Discard(); err != nil { - fmt.Fprintf(os.Stderr, "failed discarding panicing txn err: %s", err) + fmt.Fprintf(os.Stderr, "failed discarding panicking txn err: %s", err) } panic(p) } From 112493af739bc667fec535b6692ffb4ae4e9c4a3 Mon Sep 17 00:00:00 2001 From: Hack666r Date: Wed, 25 Dec 2024 23:43:14 +0100 Subject: [PATCH 2/2] typo fix juno_state_reader.rs Signed-off-by: Hack666r --- vm/rust/src/juno_state_reader.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vm/rust/src/juno_state_reader.rs b/vm/rust/src/juno_state_reader.rs index ee4ad9734d..a86dd29007 100644 --- a/vm/rust/src/juno_state_reader.rs +++ b/vm/rust/src/juno_state_reader.rs @@ -139,7 +139,7 @@ impl StateReader for JunoStateReader { // About the changes in the second attempt at making class cache behave as expected; // // The initial assumption here was that `self.height` uniquely identifies and strictly orders the underlying state - // instances. The first assumption doesn't necessarily hold, because we can pass different state instaces with the + // instances. The first assumption doesn't necessarily hold, because we can pass different state instances with the // same height. This most commonly happens with call/estimate/simulate and trace flows. Trace flow calls the VM // for block number N with the state at the beginning of the block, while call/estimate/simulate flows call the VM // with the same block number but with the state at the end of that block. That is why, we cannot use classes from cache