Skip to content

Commit

Permalink
Update code hash / bytecode
Browse files Browse the repository at this point in the history
  • Loading branch information
danyalprout committed May 14, 2024
1 parent 275d0f8 commit 26490d3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion specs/fjord/derivation.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ jq -r ".bytecode.object" packages/contracts-bedrock/forge-artifacts/GasPriceOrac
```

This transaction MUST deploy a contract with the following code hash
`0x58e192326ee67ed52b7add91e4640024cbd1b21528a0ff1e1d21b7ca54e3ee62`.
`0xa8682d0cb2cf24478bda32c1058ed3ca741134c5a319e80f29a30f45fe5b8245`.

## GasPriceOracle Proxy Update

Expand Down
7 changes: 4 additions & 3 deletions specs/fjord/predeploys.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,11 @@ This is implemented as follows:

```solidity
function getL1FeeUpperBound(uint256 unsignedTxSize) external view returns (uint256) {
// txSize / 255 + 16 is the pratical fastlz upper-bound covers 99.99% txs.
// Add 68 to account for unsigned tx
int256 flzUpperBound = int256(unsignedTxSize) + int256(unsignedTxSize) / 255 + 16 + 68;
uint256 txSize = unsignedTxSize + 68;
// txSize / 255 + 16 is the pratical fastlz upper-bound covers 99.99% txs.
uint256 flzUpperBound = txSize + txSize / 255 + 16;
int256 estimatedSize = costIntercept + costFastlzCoef * flzUpperBound;
if (estimatedSize < minTransactionSize) {
estimatedSize = minTransactionSize;
Expand Down
Loading

0 comments on commit 26490d3

Please sign in to comment.