Skip to content

Commit 3025cc5

Browse files
Rename is_known_opcode to opcode_known_name
1 parent 67181fd commit 3025cc5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

crates/evm-tracing-client/src/serialization.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ pub fn opcode_serialize<S>(opcode: &evm::Opcode, serializer: S) -> Result<S::Ok,
5454
where
5555
S: Serializer,
5656
{
57-
let d = match crate::utils::is_known_opcode(opcode) {
57+
let d = match crate::utils::opcode_known_name(opcode) {
5858
Some(s) => s.to_uppercase(),
5959
None => format!("UNKNOWN({})", opcode.0),
6060
};

crates/evm-tracing-client/src/utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
33
/// Check whether it's a known opcode or not. In case it's a known one,
44
/// return the name of the opcode then.
5-
pub fn is_known_opcode(opcode: &evm::Opcode) -> Option<&'static str> {
5+
pub fn opcode_known_name(opcode: &evm::Opcode) -> Option<&'static str> {
66
Some(match opcode.0 {
77
0 => "Stop",
88
1 => "Add",

0 commit comments

Comments
 (0)