Skip to content

fix(standards): keep the network target when the execution hint is unrecognized - #3811

Open
onurinanc wants to merge 3 commits into
nextfrom
fix-malformed-exexec-hint-validation
Open

fix(standards): keep the network target when the execution hint is unrecognized#3811
onurinanc wants to merge 3 commits into
nextfrom
fix-malformed-exexec-hint-validation

Conversation

@onurinanc

Copy link
Copy Markdown
Collaborator

Summary

  • Decode NetworkAccountTarget from the target account ID alone, matching the on-chain check that discards the execution hint felt.
  • Store the execution hint as a raw Felt so re-encoding a decoded target is lossless, and return Option<NoteExecutionHint> from execution_hint.
  • Drop the DecodeExecutionHint variant from NetworkAccountTargetError.
  • Cover an unrecognized hint tag in the attachment round-trip and test_network_note tests.

Closes #3718.

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.

Malformed Execution Hint Hides Network-Targeted Notes From Off-Chain Routing

1 participant