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

feat: implement 0x4a: blob_base_fee #247

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

feat: implement 0x4a: blob_base_fee #247

wants to merge 3 commits into from

Conversation

enitrat
Copy link
Collaborator

@enitrat enitrat commented Dec 10, 2024

Closes #167

obatirou
obatirou previously approved these changes Dec 10, 2024
local state: model.State*;
%{ block %}
%{ state %}
// Given
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
// Given

def test_should_push_blob_base_fee(self, cairo_run):
block_ = block()
[blob_base_fee] = cairo_run(
"test__exec_blob_base_fee", block=block_, state=State.model_validate({})
Copy link
Contributor

Choose a reason for hiding this comment

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

Why pass an empty State and call the %{ state %} hint ? Seems not necessary
You could add in the cairo code let state = State.init() directly

Copy link
Collaborator Author

@enitrat enitrat Dec 11, 2024

Choose a reason for hiding this comment

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

I don't want to introduce reliance on the Cairo function to generate an empty state, I want to be able to pass any state from python

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fix: blobbasefee return 0
2 participants