Skip to content

AggLayer: unify origin token & address storage reads#2745

Open
mmagician wants to merge 3 commits intonextfrom
mmagician-agglayer-unify-origin-reads
Open

AggLayer: unify origin token & address storage reads#2745
mmagician wants to merge 3 commits intonextfrom
mmagician-agglayer-unify-origin-reads

Conversation

@mmagician
Copy link
Copy Markdown
Collaborator

Rather than doing two storage reads, we can read the origin_token_address and origin_network in one go.

This PR also unifies how we store origin_network in faucet storage: LE-encoded. It saves the conversion step (exec.utils::swap_u32_bytes) in the contract logic later.

Also, this unified procedure can be private.

Copy link
Copy Markdown
Contributor

@partylikeits1983 partylikeits1983 left a comment

Choose a reason for hiding this comment

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

Nice optimization!

@mmagician mmagician added agglayer PRs or issues related to AggLayer bridging integration pr-from-maintainers PRs that come from internal contributors or integration partners. They should be given priority labels Apr 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agglayer PRs or issues related to AggLayer bridging integration pr-from-maintainers PRs that come from internal contributors or integration partners. They should be given priority

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants