Skip to content

Move consts and structs outside of program scope#4

Open
Roee-87 wants to merge 3 commits into
mainfrom
update/leo-v4.3.0-syntax
Open

Move consts and structs outside of program scope#4
Roee-87 wants to merge 3 commits into
mainfrom
update/leo-v4.3.0-syntax

Conversation

@Roee-87

@Roee-87 Roee-87 commented Jun 25, 2026

Copy link
Copy Markdown
Collaborator

Leo v4.3.0 requires that structs and consts be declared outside of the program scope. This PR refactors the multisig core program code in order to comport with the those requirements.

@Roee-87
Roee-87 requested a review from eranrund June 25, 2026 03:34
@Roee-87 Roee-87 self-assigned this Jun 25, 2026
@Roee-87 Roee-87 added the enhancement New feature or request label Jun 25, 2026
@Roee-87
Roee-87 marked this pull request as ready for review June 25, 2026 03:54

@eranrund eranrund left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This looks good from what I can tell, and the unit test suite passes locally.
I'd like to experiment with using https://docs.leo-lang.org/language/layout#modules to clean this up since the multisig_core program is very long and messy at this point, I'll try it out when I have a chance.

@eranrund

Copy link
Copy Markdown
Collaborator

I tried using leo modules to see if it helps clean up but its a very minor difference: 2286953
Doesn't seem meaningfully easier to look at, unfortunately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants