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
e8acf7d2
Commit
e8acf7d2
authored
Jan 09, 2023
by
clabby
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename `outOfGas` -> `reverted` for clarity
parent
758b43c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
CrossDomainMessenger.t.sol
...rock/contracts/test/invariants/CrossDomainMessenger.t.sol
+4
-4
No files found.
packages/contracts-bedrock/contracts/test/invariants/CrossDomainMessenger.t.sol
View file @
e8acf7d2
...
...
@@ -17,7 +17,7 @@ contract RelayActor is StdUtils {
uint256 public numHashes;
bytes32[] public hashes;
bool public
outOfGas
= false;
bool public
reverted
= false;
OptimismPortal op;
L1CrossDomainMessenger xdm;
...
...
@@ -80,10 +80,10 @@ contract RelayActor is StdUtils {
_message
)
{} catch {
// If any of these calls revert, set `
outOfGas
` to true to fail the invariant test.
// If any of these calls revert, set `
reverted
` to true to fail the invariant test.
// NOTE: This is to get around forge's invariant fuzzer ignoring reverted calls
// to this function.
outOfGas
= true;
reverted
= true;
}
vm.stopPrank();
...
...
@@ -132,6 +132,6 @@ contract XDM_MinGasLimits is Messenger_Initializer, InvariantTest {
// it is not in the received messages mapping
assertFalse(L1Messenger.failedMessages(hash));
}
assertFalse(actor.
outOfGas
());
assertFalse(actor.
reverted
());
}
}
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