Skip to content

fix: restore endowment:assets permission to Bitcoin, Solana, and Tron snaps - #274

Merged
ulissesferreira merged 2 commits into
mainfrom
restore-endowment-assets
Sep 4, 2026
Merged

fix: restore endowment:assets permission to Bitcoin, Solana, and Tron snaps#274
ulissesferreira merged 2 commits into
mainfrom
restore-endowment-assets

Conversation

@ulissesferreira

Copy link
Copy Markdown
Contributor

Why

The endowment:assets permission was removed from the bitcoin, solana, and tron snaps in #260, #261, and #263, together with their asset handler entry points. This PR brings the permission back so the snaps request the assets scopes again (the stellar snap never lost it).

Summary

  • Restores the endowment:assets field in each snap's snap.manifest.json with the exact scopes it had before the removal commits:
    • bitcoin-wallet-snap: the five bip122 mainnet/testnet/regtest scopes
    • solana-wallet-snap: solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp and solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1
    • tron-wallet-snap: tron:728126428
  • endowment:assets is a handler endowment, so the manifest validator strips it unless the snap exports asset handlers. Adds no-op onAssetsLookup, onAssetsConversion, onAssetHistoricalPrice, and onAssetsMarketData entry points to each snap to keep the permission.

Validation

  • yarn workspace <pkg> run build passes for all three snaps and the permission survives the build's manifest check
  • yarn workspace <pkg> run test passes for all three snaps
  • tsc --noEmit and ESLint clean, yarn changelog:validate passes

@ulissesferreira
ulissesferreira requested a review from a team as a code owner September 4, 2026 13:29
@ulissesferreira ulissesferreira changed the title feat: restore endowment:assets permission to bitcoin, solana, and tron snaps fix: restore endowment:assets permission to bitcoin, solana, and tron snaps Sep 4, 2026
@ulissesferreira ulissesferreira changed the title fix: restore endowment:assets permission to bitcoin, solana, and tron snaps fix: restore endowment:assets permission to Bitcoin, Solana, and Tron snaps Sep 4, 2026

@taran-a taran-a left a comment

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.

GG

@ulissesferreira
ulissesferreira added this pull request to the merge queue Sep 4, 2026
Merged via the queue into main with commit bb02e4b Sep 4, 2026
55 of 56 checks passed
@ulissesferreira
ulissesferreira deleted the restore-endowment-assets branch September 4, 2026 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants