Skip to content

Commit cddddb7

Browse files
chfastaxic
authored andcommitted
Update rust
1 parent f3d7a4b commit cddddb7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ mod tests {
4747
// TODO: add other checks from test/unittests/test_helpers.cpp
4848
assert_eq!(size_of::<evmc_bytes32>(), 32);
4949
assert_eq!(size_of::<evmc_address>(), 20);
50-
assert!(size_of::<evmc_result>() <= 64);
50+
assert!(size_of::<evmc_result>() <= 128);
5151
assert!(size_of::<evmc_vm>() <= 64);
5252
}
5353
}

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ impl Into<ffi::evmc_result> for ExecutionResult {
447447
} else {
448448
Address { bytes: [0u8; 20] }
449449
},
450-
padding: [0u8; 4],
450+
scratchpad: ffi::evmc_result_scratchpad { bytes: [0u8; 32] },
451451
}
452452
}
453453
}
@@ -532,7 +532,7 @@ mod tests {
532532
output_size: 4,
533533
release: Some(test_result_dispose),
534534
create_address: Address { bytes: [0u8; 20] },
535-
padding: [0u8; 4],
535+
scratchpad: ffi::evmc_result_scratchpad { bytes: [0u8; 32] },
536536
};
537537

538538
let r: ExecutionResult = f.into();
@@ -778,7 +778,7 @@ mod tests {
778778
output_size: msg.input_size,
779779
release: None,
780780
create_address: ffi::evmc_address::default(),
781-
padding: [0u8; 4],
781+
scratchpad: ffi::evmc_result_scratchpad { bytes: [0u8; 32] },
782782
}
783783
}
784784

0 commit comments

Comments
 (0)