Skip to content

Commit 5d95851

Browse files
authored
fix: set test deploy height to a non-zero number (#114)
1 parent 08e564b commit 5d95851

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ members = ["crates/*"]
33
resolver = "2"
44

55
[workspace.package]
6-
version = "0.9.2"
6+
version = "0.9.3"
77
edition = "2021"
88
rust-version = "1.81"
99
authors = ["init4"]

crates/constants/src/chains/test_utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ pub const HOST_NAME: &str = "Test Host";
1818
/// Test chain id for the host chain.
1919
pub const HOST_CHAIN_ID: u64 = 1;
2020
/// Test deployment height.
21-
pub const DEPLOY_HEIGHT: u64 = 0;
21+
pub const DEPLOY_HEIGHT: u64 = 100;
2222
/// Test address for the host zenith.
2323
pub const HOST_ZENITH: Address = Address::repeat_byte(0x11);
2424
/// Test address for the host orders.

crates/zenith/src/trevm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ mod test {
4040
fn roundtrip<T: JournalDecode + JournalEncode + PartialEq>(expected: &T) {
4141
let enc = JournalEncode::encoded(expected);
4242
assert_eq!(enc.len(), expected.serialized_size(), "{}", core::any::type_name::<T>());
43-
let dec = T::decode(&mut enc.as_slice()).expect("decoding failed");
43+
let dec = T::decode(&mut enc.as_ref()).expect("decoding failed");
4444
assert_eq!(&dec, expected);
4545
}
4646

0 commit comments

Comments
 (0)