Skip to content

fix: load foreign AccountCode on ntx builder#1598

Merged
bobbinth merged 7 commits intomainfrom
igamigo-fix-ntx-foreign-maststore
Jan 27, 2026
Merged

fix: load foreign AccountCode on ntx builder#1598
bobbinth merged 7 commits intomainfrom
igamigo-fix-ntx-foreign-maststore

Conversation

@igamigo
Copy link
Copy Markdown
Collaborator

@igamigo igamigo commented Jan 27, 2026

No description provided.

@igamigo igamigo force-pushed the igamigo-fix-ntx-foreign-maststore branch from d59e684 to 4212965 Compare January 27, 2026 16:13
@igamigo igamigo changed the base branch from next to main January 27, 2026 16:13
Comment thread CHANGELOG.md Outdated
Copy link
Copy Markdown
Collaborator

@Mirko-von-Leipzig Mirko-von-Leipzig left a comment

Choose a reason for hiding this comment

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

I think this is probably required in any case?

@igamigo igamigo marked this pull request as ready for review January 27, 2026 18:35
Copy link
Copy Markdown
Contributor

@bobbinth bobbinth left a comment

Choose a reason for hiding this comment

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

Looks good! Thank you!

Do we need to make the same fix in the validator?

Comment on lines +442 to +444
// Ensure foreign account procedures are available to the executor via the mast store.
// This assumes the code was not loaded from before
self.mast_store.load_account_code(account_inputs.code());
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I was incorrect before. I thought TransactionBaseHost (in load_foreign_account_code()) but that method just update the procedure index map. Though, I think it is somewhat confusing that TransactionBaseHost also manages a mast_store.

Maybe we should simplify the structure somehow. cc @PhilippGackstatter - maybe we should create an issue about this in miden-base?

@igamigo
Copy link
Copy Markdown
Collaborator Author

igamigo commented Jan 27, 2026

Looks good! Thank you!

Do we need to make the same fix in the validator?

No, the validator already loads it (from TransactionInputs though). That was caught from FPI integration tests, but currently we don't have one for netwokr transactions that use FPI.

@igamigo
Copy link
Copy Markdown
Collaborator Author

igamigo commented Jan 27, 2026

Before merging this, would be nice to see if the agglayer flow works correctly with this and #1599 cc @mmagician @partylikeits1983

@bobbinth bobbinth merged commit aa09f62 into main Jan 27, 2026
7 checks passed
@bobbinth bobbinth deleted the igamigo-fix-ntx-foreign-maststore branch January 27, 2026 20:19
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