Skip to content

Commit

Permalink
Return error from ots_getInternalOperations for EOFCREATE tx
Browse files Browse the repository at this point in the history
  • Loading branch information
emhane committed Sep 15, 2024
1 parent dfc2c27 commit 6067378
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions crates/rpc/rpc/src/otterscan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,12 @@ 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 => {
return Err(internal_rpc_err("EOFCREATE unsupported"))
}
},
})
.collect::<Vec<_>>()
Expand Down

0 comments on commit 6067378

Please sign in to comment.