You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since ink! v5, arithmetic issues aren't possible anymore, since cargo-contractautomatically check for such bugs before compiling. Thus, those tests won't compile anymore, and are deprecated.
Example:
~/scout/test-cases/integer-overflow-or-underflow/integer-overflow-or-underflow-2/vulnerable-example (default-do-not-use-scout-reserved)
❯ cargo contract build
error: arithmetic operation that can potentially result in unexpected side-effects
--> integer-overflow-or-underflow-2/vulnerable-example/src/lib.rs:22:13
|
22 | self.value *= value;| ^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#arithmetic_side_effects
= note: requested on the command line with `-D clippy::arithmetic-side-effects`
❯ cargo contract --version
cargo-contract-contract 5.0.0-alpha-b183e9e-aarch64-apple-darwin
The text was updated successfully, but these errors were encountered:
Hello all,
Since ink! v5, arithmetic issues aren't possible anymore, since
cargo-contract
automatically check for such bugs before compiling. Thus, those tests won't compile anymore, and are deprecated.Example:
The text was updated successfully, but these errors were encountered: