Skip to content

Commit d0c1146

Browse files
authored
Remove minimal scarb version check for meta_tx_v0 (#3914)
1 parent 0dfbd36 commit d0c1146

File tree

1 file changed

+0
-34
lines changed

1 file changed

+0
-34
lines changed

crates/forge/tests/integration/meta_tx_v0.rs

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,10 @@ use crate::utils::running_tests::run_test_case;
33
use crate::utils::test_case;
44
use forge_runner::forge_config::ForgeTrackedResource;
55
use indoc::indoc;
6-
use scarb_api::version::scarb_version;
7-
use semver::Version;
86
use std::path::Path;
97

10-
// TODO(#3704) Remove scarb version check
11-
fn skip_scarb_lt_2_11_0() -> bool {
12-
let version_info = scarb_version().expect("Failed to get Scarb version");
13-
14-
if version_info.scarb < Version::new(2, 11, 0) {
15-
eprintln!("[IGNORED] `meta_tx_v0` syscall is not supported in Scarb < 2.11.0");
16-
true
17-
} else {
18-
false
19-
}
20-
}
21-
228
#[test]
239
fn check_meta_tx_v0_syscall_work_without_cheats() {
24-
// TODO(#3704) Remove scarb version check
25-
if skip_scarb_lt_2_11_0() {
26-
return;
27-
}
28-
2910
let test = test_case!(
3011
indoc!(
3112
r#"
@@ -82,11 +63,6 @@ fn check_meta_tx_v0_syscall_work_without_cheats() {
8263

8364
#[test]
8465
fn meta_tx_v0_with_cheat_caller_address() {
85-
// TODO(#3704) Remove scarb version check
86-
if skip_scarb_lt_2_11_0() {
87-
return;
88-
}
89-
9066
let test = test_case!(
9167
indoc!(
9268
r#"
@@ -160,11 +136,6 @@ fn meta_tx_v0_with_cheat_caller_address() {
160136
)]
161137
#[test]
162138
fn meta_tx_v0_with_cheat_block_hash() {
163-
// TODO(#3704) Remove scarb version check
164-
if skip_scarb_lt_2_11_0() {
165-
return;
166-
}
167-
168139
let test = test_case!(
169140
indoc!(
170141
r#"
@@ -234,11 +205,6 @@ fn meta_tx_v0_with_cheat_block_hash() {
234205

235206
#[test]
236207
fn meta_tx_v0_verify_tx_context_modification() {
237-
// TODO(#3704) Remove scarb version check
238-
if skip_scarb_lt_2_11_0() {
239-
return;
240-
}
241-
242208
let test = test_case!(
243209
indoc!(
244210
r#"

0 commit comments

Comments
 (0)