Skip to content

Fix init-args offset assumption for contracts with child contracts#1270

Open
sbillig wants to merge 2 commits intoargotorg:masterfrom
sbillig:issues-1212
Open

Fix init-args offset assumption for contracts with child contracts#1270
sbillig wants to merge 2 commits intoargotorg:masterfrom
sbillig:issues-1212

Conversation

@sbillig
Copy link
Collaborator

@sbillig sbillig commented Feb 21, 2026

Fixes #1212. Added a new intrinsic, current_code_region_len(), and equivalent functionality in sonatina. In Yul, we use the current region name, and fail if the intrinsic is used outside of a code region root function.

@sbillig sbillig changed the title Fix init-args offset assumptions with runtime-last init layout Fix init-args offset assumptions with runtime-last object layout Feb 22, 2026
@sbillig sbillig marked this pull request as draft February 22, 2026 18:38
@sbillig sbillig changed the title Fix init-args offset assumptions with runtime-last object layout Fix init-args offset assumption for contracts with child contracts Feb 24, 2026
@sbillig sbillig marked this pull request as ready for review February 28, 2026 07:12
@sbillig sbillig requested a review from cburgdorf February 28, 2026 07:26
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.

init args code offset is wrong when there are embedded child contracts

1 participant