Skip to content

Conversation

@sug0
Copy link
Collaborator

@sug0 sug0 commented Jul 1, 2025

Describe your changes

This fix is required by #4723.

Rather than encoding the MASP address to bech32m to compare it with the ICS-20 receiver, we parse a transparent address from the ICS-20 receiver string (which can be either bech32/bech32m), and compare it against the MASP address.

This PR also fixes a minor bug where the overflow receiver address wouldn't be added as a verifier, causing the Multitoken VP to reject txs in case of ack errors, which would result in timeouts (the latter which are a symptom of #4721).

Checklist before merging

  • If this PR has some consensus breaking changes, I added the corresponding breaking:: labels
    • This will require 2 reviewers to approve the changes
  • If this PR requires changes to the docs or specs, a corresponding PR is opened in the namada-docs repo
    • Relevant PR if applies:
  • If this PR affects services such as namada-indexer or namada-masp-indexer, a corresponding PR is opened in that repo
    • Relevant PR if applies:

@sug0 sug0 added enhancement New feature or request ledger IBC MASP breaking-change breaking:consensus Consensus breaking change that requires a hard-fork labels Jul 1, 2025
sug0 added a commit that referenced this pull request Jul 1, 2025
@sug0 sug0 requested review from batconjurer and tzemanovic July 1, 2025 13:14
@sug0 sug0 mentioned this pull request Jul 1, 2025
3 tasks
@sug0 sug0 added the bug Something isn't working label Jul 1, 2025
@sug0
Copy link
Collaborator Author

sug0 commented Jul 2, 2025

gonna add a wee test to this PR, expect a f-push

sug0 added a commit that referenced this pull request Jul 2, 2025
@sug0 sug0 force-pushed the tiago/validate-masp-shielded-swaps branch from 1f4e32e to c2f192a Compare July 2, 2025 10:34
@sug0 sug0 force-pushed the tiago/validate-masp-shielded-swaps branch from c2f192a to f88da5e Compare July 2, 2025 10:39
tzemanovic added a commit that referenced this pull request Jul 16, 2025
* origin/tiago/validate-masp-shielded-swaps:
  Changelog for #4722
  Test shielded recv with both MASP taddr encodings
  Parse taddr rather than comparing it to bech32m of MASP
@brentstone
Copy link
Collaborator

Can this be merged? How critical is it?

@sug0
Copy link
Collaborator Author

sug0 commented Jul 17, 2025

@brentstone it should be in the next release. it fixes shielded swaps with stride (as the output denom)

@tzemanovic tzemanovic merged commit 52f4e07 into main Jul 17, 2025
24 checks passed
@tzemanovic tzemanovic deleted the tiago/validate-masp-shielded-swaps branch July 17, 2025 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking:consensus Consensus breaking change that requires a hard-fork breaking-change bug Something isn't working enhancement New feature or request IBC ledger MASP

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants