Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse the initial data cost out of the init message #1704

Merged
merged 5 commits into from
Jun 20, 2023

Conversation

PlasmaPower
Copy link
Collaborator

@PlasmaPower PlasmaPower commented Jun 16, 2023

Pulls in OffchainLabs/nitro-contracts#27

The "initial data cost" is the basefee if the parent chain is an L1, or the basefee + the L1 basefee estimate if the parent chain is an Arbitrum chain.

I also refactored the init message code a bit to pull the fields into a ParsedInitMessage struct now that we have a few of them

@cla-bot cla-bot bot added the s Automatically added by the CLA bot if the creator of a PR is registered as having signed the CLA. label Jun 16, 2023
@PlasmaPower PlasmaPower changed the title Parse the current data cost out of the init message Parse the initial data cost out of the init message Jun 16, 2023
@codecov
Copy link

codecov bot commented Jun 16, 2023

Codecov Report

Merging #1704 (db7961d) into master (4ce531a) will decrease coverage by 26.24%.
The diff coverage is 60.00%.

@@             Coverage Diff             @@
##           master    #1704       +/-   ##
===========================================
- Coverage   56.11%   29.87%   -26.24%     
===========================================
  Files         217      210        -7     
  Lines       32581    31263     -1318     
===========================================
- Hits        18283     9341     -8942     
- Misses      12103    20899     +8796     
+ Partials     2195     1023     -1172     

Copy link
Contributor

@magicxyyz magicxyyz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@PlasmaPower PlasmaPower merged commit 152b9ff into master Jun 20, 2023
8 checks passed
@PlasmaPower PlasmaPower deleted the init-message-data-cost branch June 20, 2023 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ArbOS consensus s Automatically added by the CLA bot if the creator of a PR is registered as having signed the CLA.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants