Skip to content

Commit 8a331d3

Browse files
committed
Fix most tests
1 parent 52f1b5c commit 8a331d3

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

executor/wasm/src/testing.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ pub fn make_executor(chainspec_config: &ChainspecConfig) -> ExecutorV2 {
234234
.with_message_limits(message_limits)
235235
.build()
236236
.expect("Should build");
237-
ExecutorV2::new(executor_config, Arc::new(execution_engine_v1))
237+
ExecutorV2::new(executor_config, execution_engine_v1)
238238
}
239239

240240
pub fn make_global_state_with_genesis() -> (LmdbGlobalState, Digest, TempDir) {
@@ -378,7 +378,7 @@ pub fn call_dummy_host_fn_by_name(
378378
.with_message_limits(MessageLimits::default())
379379
.build()
380380
.expect("Should build");
381-
ExecutorV2::new(executor_config, Arc::new(execution_engine_v1))
381+
ExecutorV2::new(executor_config, execution_engine_v1)
382382
};
383383

384384
let (global_state, state_root_hash, _tempdir) = make_global_state_with_genesis();

executor/wasm/tests/integration.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1051,7 +1051,7 @@ fn backwards_compatibility() {
10511051

10521052
let mut state_root_hash = post_state_hash;
10531053

1054-
let value = match *value {
1054+
let value = match value {
10551055
StoredValue::Account(account) => account,
10561056
_ => panic!("Expected CLValue"),
10571057
};

vm2-build-contracts.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ VM2_LIBS=(
1717
"vm2-host"
1818
"vm2-escrow"
1919
"vm2-named-args"
20+
"vm2-counter"
2021
)
2122

2223

0 commit comments

Comments
 (0)