From 6c16df236567047ea62a4750197e1847771d20d7 Mon Sep 17 00:00:00 2001 From: Emilia Hane Date: Thu, 3 Oct 2024 17:32:03 +0200 Subject: [PATCH] Map `TransferKind::EofCreate` => `OperationType::OpEofCreate` (#11090) Co-authored-by: Matthias Seitz --- crates/rpc/rpc/src/otterscan.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/crates/rpc/rpc/src/otterscan.rs b/crates/rpc/rpc/src/otterscan.rs index 35972d9136b9..31db343a104f 100644 --- a/crates/rpc/rpc/src/otterscan.rs +++ b/crates/rpc/rpc/src/otterscan.rs @@ -106,11 +106,10 @@ where value: op.value, r#type: match op.kind { TransferKind::Call => OperationType::OpTransfer, - TransferKind::Create | TransferKind::EofCreate => { - OperationType::OpCreate - } + TransferKind::Create => OperationType::OpCreate, TransferKind::Create2 => OperationType::OpCreate2, TransferKind::SelfDestruct => OperationType::OpSelfDestruct, + TransferKind::EofCreate => OperationType::OpEofCreate, }, }) .collect::>()