Skip to content
This repository was archived by the owner on Apr 8, 2026. It is now read-only.

Commit 4f4da10

Browse files
committed
f
1 parent 4cbdccd commit 4f4da10

2 files changed

Lines changed: 8 additions & 13 deletions

File tree

bindings/rust/evmc-vm/src/lib.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,7 @@ pub struct ExecutionContext<'a> {
6767

6868
impl ExecutionResult {
6969
/// Manually create a result.
70-
pub fn new(
71-
_status_code: StatusCode,
72-
_gas_left: i64,
73-
_output: Option<&[u8]>,
74-
) -> Self {
70+
pub fn new(_status_code: StatusCode, _gas_left: i64, _output: Option<&[u8]>) -> Self {
7571
ExecutionResult {
7672
status_code: _status_code,
7773
gas_left: _gas_left,
@@ -858,7 +854,6 @@ mod tests {
858854
assert!(b.output().is_none());
859855
assert!(b.create_address().is_some());
860856
assert_eq!(b.create_address().unwrap(), &Address::default());
861-
862857
}
863858

864859
#[test]

bindings/rust/evmc-vm/src/types.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,13 @@ mod tests {
6868

6969
#[test]
7070
fn message_kind() {
71-
// assert_eq!(MessageKind::Call, ffi::evmc_call_kind::EVMC_CALL);
72-
// assert_eq!(MessageKind::CallCode, ffi::evmc_call_kind::EVMC_CALLCODE);
73-
// assert_eq!(
74-
// MessageKind::DelegateCall,
75-
// ffi::evmc_call_kind::EVMC_DELEGATECALL
76-
// );
77-
// assert_eq!(MessageKind::Create, ffi::evmc_call_kind::EVMC_CREATE);
71+
// assert_eq!(MessageKind::Call, ffi::evmc_call_kind::EVMC_CALL);
72+
// assert_eq!(MessageKind::CallCode, ffi::evmc_call_kind::EVMC_CALLCODE);
73+
// assert_eq!(
74+
// MessageKind::DelegateCall,
75+
// ffi::evmc_call_kind::EVMC_DELEGATECALL
76+
// );
77+
// assert_eq!(MessageKind::Create, ffi::evmc_call_kind::EVMC_CREATE);
7878
}
7979

8080
#[test]

0 commit comments

Comments
 (0)