Skip to content

ref: rename VMContext::curent() -> VM::context()#91

Merged
qalisander merged 8 commits intomainfrom
ref/rename-vmcontext
Apr 8, 2025
Merged

ref: rename VMContext::curent() -> VM::context()#91
qalisander merged 8 commits intomainfrom
ref/rename-vmcontext

Conversation

@qalisander
Copy link
Copy Markdown
Member

@qalisander qalisander commented Apr 4, 2025

PR Checklist

  • Tests
  • Documentation
  • Changelog

assert_eq!(block::chainid(), DEFAULT_CHAIN_ID);

VMContext::current().set_chain_id(ETHEREUM_SEPOLIA_CHAIN_ID);
VM::context().set_chain_id(ETHEREUM_SEPOLIA_CHAIN_ID);
Copy link
Copy Markdown
Member Author

@qalisander qalisander Apr 4, 2025

Choose a reason for hiding this comment

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

That is actually all this refactoring about. Make this invocation shorter, until we don't have that many config functions public. And this breaking change will not have much impact.

I remember @0xNeshi supported this idea before.

@qalisander qalisander marked this pull request as ready for review April 4, 2025 12:07
Copy link
Copy Markdown
Collaborator

@bidzyyys bidzyyys left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Copy Markdown
Collaborator

@0xNeshi 0xNeshi left a comment

Choose a reason for hiding this comment

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

Nice work 🚀

@qalisander qalisander merged commit 848e183 into main Apr 8, 2025
10 checks passed
@bidzyyys bidzyyys deleted the ref/rename-vmcontext branch April 9, 2025 12:16
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.

3 participants