Skip to content

Commit

Permalink
Disable overflow checks for examples (use-ink#1034)
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Müller authored and xgreenx committed Feb 8, 2022
1 parent 7542a7e commit 9c42bce
Show file tree
Hide file tree
Showing 17 changed files with 68 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/contract-terminate/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ name = "contract_terminate"
path = "lib.rs"
crate-type = ["cdylib"]

# Needed until /~https://github.com/paritytech/ink/issues/364 is resolved.
[profile.release]
overflow-checks = false

[features]
default = ["std"]
std = [
Expand Down
4 changes: 4 additions & 0 deletions examples/contract-transfer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ name = "contract_transfer"
path = "lib.rs"
crate-type = ["cdylib"]

# Needed until /~https://github.com/paritytech/ink/issues/364 is resolved.
[profile.release]
overflow-checks = false

[features]
default = ["std"]
std = [
Expand Down
4 changes: 4 additions & 0 deletions examples/delegator/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ name = "delegator"
path = "lib.rs"
crate-type = ["cdylib"]

# Needed until /~https://github.com/paritytech/ink/issues/364 is resolved.
[profile.release]
overflow-checks = false

[features]
default = ["std"]
std = [
Expand Down
4 changes: 4 additions & 0 deletions examples/delegator/accumulator/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ crate-type = [
"rlib",
]

# Needed until /~https://github.com/paritytech/ink/issues/364 is resolved.
[profile.release]
overflow-checks = false

[features]
default = ["std"]
std = [
Expand Down
4 changes: 4 additions & 0 deletions examples/delegator/adder/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ crate-type = [
"rlib",
]

# Needed until /~https://github.com/paritytech/ink/issues/364 is resolved.
[profile.release]
overflow-checks = false

[features]
default = ["std"]
std = [
Expand Down
4 changes: 4 additions & 0 deletions examples/delegator/subber/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ crate-type = [
"rlib",
]

# Needed until /~https://github.com/paritytech/ink/issues/364 is resolved.
[profile.release]
overflow-checks = false

[features]
default = ["std"]
std = [
Expand Down
4 changes: 4 additions & 0 deletions examples/dns/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ name = "dns"
path = "lib.rs"
crate-type = ["cdylib"]

# Needed until /~https://github.com/paritytech/ink/issues/364 is resolved.
[profile.release]
overflow-checks = false

[features]
default = ["std"]
std = [
Expand Down
4 changes: 4 additions & 0 deletions examples/erc1155/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ name = "erc1155"
path = "lib.rs"
crate-type = ["cdylib"]

# Needed until /~https://github.com/paritytech/ink/issues/364 is resolved.
[profile.release]
overflow-checks = false

[features]
default = ["std"]
std = [
Expand Down
4 changes: 4 additions & 0 deletions examples/erc20/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ name = "erc20"
path = "lib.rs"
crate-type = ["cdylib"]

# Needed until /~https://github.com/paritytech/ink/issues/364 is resolved.
[profile.release]
overflow-checks = false

[features]
default = ["std"]
std = [
Expand Down
4 changes: 4 additions & 0 deletions examples/erc721/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ name = "erc721"
path = "lib.rs"
crate-type = ["cdylib"]

# Needed until /~https://github.com/paritytech/ink/issues/364 is resolved.
[profile.release]
overflow-checks = false

[features]
default = ["std"]
std = [
Expand Down
4 changes: 4 additions & 0 deletions examples/flipper/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ name = "flipper"
path = "lib.rs"
crate-type = ["cdylib"]

# Needed until /~https://github.com/paritytech/ink/issues/364 is resolved.
[profile.release]
overflow-checks = false

[features]
default = ["std"]
std = [
Expand Down
4 changes: 4 additions & 0 deletions examples/incrementer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ name = "incrementer"
path = "lib.rs"
crate-type = ["cdylib"]

# Needed until /~https://github.com/paritytech/ink/issues/364 is resolved.
[profile.release]
overflow-checks = false

[features]
default = ["std"]
std = [
Expand Down
4 changes: 4 additions & 0 deletions examples/multisig/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ name = "multisig"
path = "lib.rs"
crate-type = ["cdylib"]

# Needed until /~https://github.com/paritytech/ink/issues/364 is resolved.
[profile.release]
overflow-checks = false

[features]
default = ["std"]
std = [
Expand Down
4 changes: 4 additions & 0 deletions examples/rand-extension/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ name = "rand_extension"
path = "lib.rs"
crate-type = ["cdylib"]

# Needed until /~https://github.com/paritytech/ink/issues/364 is resolved.
[profile.release]
overflow-checks = false

[features]
default = ["std"]
std = [
Expand Down
4 changes: 4 additions & 0 deletions examples/trait-erc20/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ name = "trait_erc20"
path = "lib.rs"
crate-type = ["cdylib"]

# Needed until /~https://github.com/paritytech/ink/issues/364 is resolved.
[profile.release]
overflow-checks = false

[features]
default = ["std"]
std = [
Expand Down
4 changes: 4 additions & 0 deletions examples/trait-flipper/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ name = "trait_flipper"
path = "lib.rs"
crate-type = ["cdylib"]

# Needed until /~https://github.com/paritytech/ink/issues/364 is resolved.
[profile.release]
overflow-checks = false

[features]
default = ["std"]
std = [
Expand Down
4 changes: 4 additions & 0 deletions examples/trait-incrementer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ name = "trait_incrementer"
path = "lib.rs"
crate-type = ["cdylib"]

# Needed until /~https://github.com/paritytech/ink/issues/364 is resolved.
[profile.release]
overflow-checks = false

[features]
default = ["std"]
std = [
Expand Down

0 comments on commit 9c42bce

Please sign in to comment.