Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/evm/src/precompiles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ impl<CTX: ContextTr> PrecompileProvider<CTX> for PrecompilesMap {
match context.local().shared_memory_buffer_slice(range.clone()) {
Some(slice) => {
r = slice;
r.as_ref()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we do &*r here instead, I believe this is how we solved htis in revm-inspectors

paradigmxyz/revm-inspectors@5bf3f10

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice, this works 👍

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

much better 😄

&*r
}
None => &[],
}
Expand Down