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
0ea0441f
Unverified
Commit
0ea0441f
authored
Oct 23, 2024
by
oisa godspower
Committed by
GitHub
Oct 23, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
GasPriceOracle.sol: small fix (#11840)
* small fix * Change version and hash
parent
2769b25b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
semver-lock.json
packages/contracts-bedrock/semver-lock.json
+2
-2
GasPriceOracle.sol
packages/contracts-bedrock/src/L2/GasPriceOracle.sol
+3
-3
No files found.
packages/contracts-bedrock/semver-lock.json
View file @
0ea0441f
...
...
@@ -68,8 +68,8 @@
"sourceCodeHash"
:
"0x0b6afdc52d1ae88d9e4bbb5dc00920e7a6bd1e9d6595bfdbae64874190f39df0"
},
"src/L2/GasPriceOracle.sol"
:
{
"initCodeHash"
:
"0x
03947f33b80774b92214083374262fe6a4defa61da548391b44d471f2e87e9e7
"
,
"sourceCodeHash"
:
"0x
4f21025d4b5c9c74cf7040db6f8e9ce605b82931e3012fee51d3f5d9fbd7b73f
"
"initCodeHash"
:
"0x
7e8c2b42e10187ad649c0bf70c5688c2a4af3c412bacaec87d63c3f93ae4cfef
"
,
"sourceCodeHash"
:
"0x
a12ce15ded3cca681b2fc9facaebbb45d740dd6f9c9496333c1c46689c9a2d99
"
},
"src/L2/L1Block.sol"
:
{
"initCodeHash"
:
"0xa919d2aa76a7ecdfd076e2b1dbece499cc85706075f16eb6fa7b1a0fa7b38c1b"
,
...
...
packages/contracts-bedrock/src/L2/GasPriceOracle.sol
View file @
0ea0441f
...
...
@@ -29,8 +29,8 @@ contract GasPriceOracle is ISemver {
uint256 public constant DECIMALS = 6;
/// @notice Semantic version.
/// @custom:semver 1.3.1-beta.
2
string public constant version = "1.3.1-beta.
2
";
/// @custom:semver 1.3.1-beta.
3
string public constant version = "1.3.1-beta.
3
";
/// @notice This is the intercept value for the linear regression used to estimate the final size of the
/// compressed transaction.
...
...
@@ -74,7 +74,7 @@ contract GasPriceOracle is ISemver {
// Add 68 to the size to account for unsigned tx:
uint256 txSize = _unsignedTxSize + 68;
// txSize / 255 + 16 is the pratical fastlz upper-bound covers %99.99 txs.
// txSize / 255 + 16 is the pra
c
tical fastlz upper-bound covers %99.99 txs.
uint256 flzUpperBound = txSize + txSize / 255 + 16;
return _fjordL1Cost(flzUpperBound);
...
...
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