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
Copy file name to clipboardExpand all lines: book/src/awesome.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,7 @@ A curated list of excellent Revm-related resources. Feel free to contribute to t
27
27
-[**Foundry:**](https://github.com/foundry-rs/foundry) A portable and modular toolkit for rapid Ethereum application development in Rust.
28
28
-[**Hardhat:**](https://github.com/NomicFoundation/hardhat) A comprehensive development environment for compiling, deploying, testing, and debugging Ethereum software.
-[**OpTrace:**](https://github.com/tanghaosuan11/op_trace) A high-performance, GUI-based EVM debugger with a programmable engine for deep-dive trace analysis.
30
31
31
32
#### Frameworks and Libraries
32
33
-[**revm-inspectors:**](https://github.com/paradigmxyz/revm-inspectors) Hooks for EVM execution.
/// The Range points to the SharedMemory buffer. Buffer can be found in [`context_interface::LocalContextTr::shared_memory_buffer_slice`] function.
12
16
/// And can be accessed with `evm.ctx().local().shared_memory_buffer()`
13
17
///
@@ -16,12 +20,11 @@ pub enum CallInput {
16
20
/// Use it with caution, CallInput shared buffer can be overridden if context from child call is returned so
17
21
/// recommendation is to fetch buffer at first Inspector call and clone it from [`context_interface::LocalContextTr::shared_memory_buffer_slice`] function.
18
22
SharedBuffer(Range<usize>),
19
-
/// Bytes of the call data.
20
-
Bytes(Bytes),
21
23
}
22
24
23
25
implCallInput{
24
26
/// Returns the length of the call input.
27
+
#[inline]
25
28
pubfnlen(&self) -> usize{
26
29
matchself{
27
30
Self::Bytes(bytes) => bytes.len(),
@@ -30,10 +33,39 @@ impl CallInput {
30
33
}
31
34
32
35
/// Returns `true` if the call input is empty.
36
+
#[inline]
33
37
pubfnis_empty(&self) -> bool{
34
38
self.len() == 0
35
39
}
36
40
41
+
/// Returns the bytes of the call input from the given context.
0 commit comments