Skip to content

Commit

Permalink
Fix two tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jgcrosta committed Aug 5, 2024
1 parent 6d98aae commit 065d99a
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 35 deletions.
21 changes: 0 additions & 21 deletions test-cases/overflow-check/Cargo.toml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,25 @@ edition = "2021"
name = "overflow-check-remediated-1"
version = "0.1.0"

[lib]
crate-type = ["cdylib"]

[dependencies]
soroban-sdk = { workspace = true }
soroban-sdk = { version = "=21.4.0" }

[dev-dependencies]
soroban-sdk = { workspace = true, features = ["testutils"] }
[dev_dependencies]
soroban-sdk = { version = "=21.4.0", features = ["testutils"] }

[features]
testutils = ["soroban-sdk/testutils"]

[profile.release]
codegen-units = 1
debug = 0
debug-assertions = false
lto = true
opt-level = "z"
overflow-checks = true
panic = "abort"
strip = "symbols"

[profile.release-with-logs]
debug-assertions = true
inherits = "release"
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,25 @@ edition = "2021"
name = "overflow-check-vulnerable-1"
version = "0.1.0"

[lib]
crate-type = ["cdylib"]

[dependencies]
soroban-sdk = { workspace = true }
soroban-sdk = { version = "=21.4.0" }

[dev-dependencies]
soroban-sdk = { workspace = true, features = ["testutils"] }
[dev_dependencies]
soroban-sdk = { version = "=21.4.0", features = ["testutils"] }

[features]
testutils = ["soroban-sdk/testutils"]

[profile.release]
codegen-units = 1
debug = 0
debug-assertions = false
lto = true
opt-level = "z"
overflow-checks = false
panic = "abort"
strip = "symbols"

[profile.release-with-logs]
debug-assertions = true
inherits = "release"
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ version = "0.1.0"
crate-type = ["cdylib"]

[dependencies]
soroban-sdk = { workspace = true }
soroban-sdk = { version = "=20.0.0" }

[dev-dependencies]
soroban-sdk = { workspace = true, features = ["testutils"] }
soroban-sdk = { version = "=20.0.0", features = ["testutils"] }

[features]
testutils = ["soroban-sdk/testutils"]

0 comments on commit 065d99a

Please sign in to comment.