You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat(anvil): add `debug_dbGet` endpoint
Introduces a new RPC handler `debug_db_get` that retrieves bytecode from the database using a specific key format. The key must be 33 bytes long, starting with the prefix 0x63, and the method validates the key before fetching the bytecode using the existing `debug_code_by_hash` function.
* fix: typo
* add `EthRequest::DebugDbGet` variant
Copy file name to clipboardExpand all lines: crates/anvil/src/eth/backend/mem/mod.rs
+36Lines changed: 36 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -2840,6 +2840,42 @@ impl Backend {
2840
2840
Ok(None)
2841
2841
}
2842
2842
2843
+
/// Returns the value associated with a key from the database
2844
+
/// Currently only supports bytecode lookups.
2845
+
///
2846
+
/// Based on Reth implementation: <https://github.com/paradigmxyz/reth/blob/66cfa9ed1a8c4bc2424aacf6fb2c1e67a78ee9a2/crates/rpc/rpc/src/debug.rs#L1146-L1178>
0 commit comments