Skip to content

Commit

Permalink
Disable overflow checks (#372)
Browse files Browse the repository at this point in the history
* Disable overflow checks

* Update changelog
  • Loading branch information
Michael Müller authored Nov 23, 2021
1 parent 8430acb commit 8463869
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
- Use of `-Clinker-plugin-lto` flag(reduces the size of the contract) if `lto` is enabled - [#358](/~https://github.com/paritytech/cargo-contract/pull/358)

### Added
- Disabled overflow checks in the `cargo contract new` template - [#372](/~https://github.com/paritytech/cargo-contract/pull/372)

## [0.15.0] - 2021-10-18

### Changed
Expand Down
4 changes: 4 additions & 0 deletions templates/new/_Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ 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 8463869

Please sign in to comment.