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
2402bdef
Commit
2402bdef
authored
Aug 07, 2023
by
Mark Tyneway
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
contracts-bedrock: fixup L2OutputOracle
Co-authored-by:
refcell.eth
<
abigger87@gmail.com
>
parent
70d0dd4a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
abi_test.go
op-proposer/proposer/abi_test.go
+1
-1
.gas-snapshot
packages/contracts-bedrock/.gas-snapshot
+1
-1
L2OutputOracle.t.sol
packages/contracts-bedrock/test/L2OutputOracle.t.sol
+2
-2
No files found.
op-proposer/proposer/abi_test.go
View file @
2402bdef
...
...
@@ -33,7 +33,7 @@ func setupL2OutputOracle() (common.Address, *bind.TransactOpts, *backends.Simula
backend
,
big
.
NewInt
(
10
),
big
.
NewInt
(
2
),
big
.
NewInt
(
0
),
big
.
NewInt
(
10
0
),
)
if
err
!=
nil
{
return
common
.
Address
{},
nil
,
nil
,
nil
,
err
...
...
packages/contracts-bedrock/.gas-snapshot
View file @
2402bdef
...
...
@@ -239,10 +239,10 @@ L2OutputOracleUpgradeable_Test:test_initValuesOnProxy_succeeds() (gas: 46738)
L2OutputOracleUpgradeable_Test:test_initializeImpl_alreadyInitialized_reverts() (gas: 15216)
L2OutputOracleUpgradeable_Test:test_initializeProxy_alreadyInitialized_reverts() (gas: 20216)
L2OutputOracleUpgradeable_Test:test_upgrading_succeeds() (gas: 191346)
L2OutputOracle_constructor_Test:test_constructor_badTimestamp_reverts() (gas: 12353)
L2OutputOracle_constructor_Test:test_constructor_l2BlockTimeZero_reverts() (gas: 39147)
L2OutputOracle_constructor_Test:test_constructor_submissionInterval_reverts() (gas: 39157)
L2OutputOracle_constructor_Test:test_constructor_succeeds() (gas: 51712)
L2OutputOracle_constructor_Test:test_initialize_badTimestamp_reverts() (gas: 12353)
L2OutputOracle_deleteOutputs_Test:test_deleteL2Outputs_afterLatest_reverts() (gas: 217031)
L2OutputOracle_deleteOutputs_Test:test_deleteL2Outputs_finalized_reverts() (gas: 113255)
L2OutputOracle_deleteOutputs_Test:test_deleteL2Outputs_ifNotChallenger_reverts() (gas: 21018)
...
...
packages/contracts-bedrock/test/L2OutputOracle.t.sol
View file @
2402bdef
...
...
@@ -52,8 +52,8 @@ contract L2OutputOracle_constructor_Test is L2OutputOracle_Initializer {
});
}
/// @dev Tests that
the constructor
reverts if the starting timestamp is invalid.
function test_
constructor
_badTimestamp_reverts() external {
/// @dev Tests that
initialize
reverts if the starting timestamp is invalid.
function test_
initialize
_badTimestamp_reverts() external {
// Reset the initialized field in the 0th storage slot
// so that initialize can be called again.
vm.store(address(oracle), bytes32(uint256(0)), bytes32(uint256(0)));
...
...
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