Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
e3d33d7b
Unverified
Commit
e3d33d7b
authored
Dec 12, 2022
by
Maurelian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ctb: Fix compiler warnings in echidna contracts
parent
9b74fd6d
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
16 additions
and
15 deletions
+16
-15
.solhint.json
packages/contracts-bedrock/.solhint.json
+1
-0
FuzzAddressAliasing.sol
...ntracts-bedrock/contracts/echidna/FuzzAddressAliasing.sol
+1
-1
FuzzBurn.sol
packages/contracts-bedrock/contracts/echidna/FuzzBurn.sol
+2
-2
FuzzEncoding.sol
...ages/contracts-bedrock/contracts/echidna/FuzzEncoding.sol
+2
-2
FuzzHashing.sol
packages/contracts-bedrock/contracts/echidna/FuzzHashing.sol
+3
-3
FuzzResourceMetering.sol
...tracts-bedrock/contracts/echidna/FuzzResourceMetering.sol
+7
-7
No files found.
packages/contracts-bedrock/.solhint.json
View file @
e3d33d7b
...
...
@@ -7,6 +7,7 @@
"code-complexity"
:
[
"warn"
,
5
],
"max-line-length"
:
[
"error"
,
100
],
"func-param-name-mixedcase"
:
"error"
,
"func-name-mixedcase"
:
"off"
,
"modifier-name-mixedcase"
:
"error"
,
"ordering"
:
"warn"
,
"avoid-low-level-calls"
:
"off"
,
...
...
packages/contracts-bedrock/contracts/echidna/FuzzAddressAliasing.sol
View file @
e3d33d7b
...
...
@@ -3,7 +3,7 @@ pragma solidity 0.8.15;
import { AddressAliasHelper } from "../vendor/AddressAliasHelper.sol";
contract EchidnaFuzzAddressAliasing {
bool failedRoundtrip;
bool
internal
failedRoundtrip;
/**
* @notice Takes an address to be aliased with AddressAliasHelper and then unaliased
...
...
packages/contracts-bedrock/contracts/echidna/FuzzBurn.sol
View file @
e3d33d7b
...
...
@@ -4,7 +4,7 @@ import { Burn } from "../libraries/Burn.sol";
import { StdUtils } from "forge-std/Test.sol";
contract EchidnaFuzzBurnEth is StdUtils {
bool failedEthBurn;
bool
internal
failedEthBurn;
/**
* @notice Takes an integer amount of eth to burn through the Burn library and
...
...
@@ -33,7 +33,7 @@ contract EchidnaFuzzBurnEth is StdUtils {
}
contract EchidnaFuzzBurnGas is StdUtils {
bool failedGasBurn;
bool
internal
failedGasBurn;
/**
* @notice Takes an integer amount of gas to burn through the Burn library and
...
...
packages/contracts-bedrock/contracts/echidna/FuzzEncoding.sol
View file @
e3d33d7b
...
...
@@ -3,8 +3,8 @@ pragma solidity 0.8.15;
import { Encoding } from "../libraries/Encoding.sol";
contract EchidnaFuzzEncoding {
bool failedRoundtripAToB;
bool failedRoundtripBToA;
bool
internal
failedRoundtripAToB;
bool
internal
failedRoundtripBToA;
/**
* @notice Takes a pair of integers to be encoded into a versioned nonce with the
...
...
packages/contracts-bedrock/contracts/echidna/FuzzHashing.sol
View file @
e3d33d7b
...
...
@@ -4,9 +4,9 @@ import { Hashing } from "../libraries/Hashing.sol";
import { Encoding } from "../libraries/Encoding.sol";
contract EchidnaFuzzHashing {
bool failedCrossDomainHashHighVersion;
bool failedCrossDomainHashV0;
bool failedCrossDomainHashV1;
bool
internal
failedCrossDomainHashHighVersion;
bool
internal
failedCrossDomainHashV0;
bool
internal
failedCrossDomainHashV1;
/**
* @notice Takes the necessary parameters to perform a cross domain hash with a randomly
...
...
packages/contracts-bedrock/contracts/echidna/FuzzResourceMetering.sol
View file @
e3d33d7b
...
...
@@ -5,16 +5,16 @@ import { Arithmetic } from "../libraries/Arithmetic.sol";
import { StdUtils } from "forge-std/Test.sol";
contract EchidnaFuzzResourceMetering is ResourceMetering, StdUtils {
bool failedMaxGasPerBlock;
bool failedRaiseBaseFee;
bool failedLowerBaseFee;
bool failedNeverBelowMinBaseFee;
bool failedMaxRaiseBaseFeePerBlock;
bool failedMaxLowerBaseFeePerBlock;
bool
internal
failedMaxGasPerBlock;
bool
internal
failedRaiseBaseFee;
bool
internal
failedLowerBaseFee;
bool
internal
failedNeverBelowMinBaseFee;
bool
internal
failedMaxRaiseBaseFeePerBlock;
bool
internal
failedMaxLowerBaseFeePerBlock;
// Used as a special flag for the purpose of identifying unchecked math errors specifically
// in the test contracts, not the target contracts themselves.
bool underflow;
bool
internal
underflow;
constructor() {
initialize();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment