Skip to content

fix: disclose WitnessCreateContract 9,999 TRX burn fee (WPN-1719) - #73

Open
ulissesferreira wants to merge 2 commits into
mainfrom
WPN-1719-witness-create-fee
Open

fix: disclose WitnessCreateContract 9,999 TRX burn fee (WPN-1719)#73
ulissesferreira wants to merge 2 commits into
mainfrom
WPN-1719-witness-create-fee

Conversation

@ulissesferreira

Copy link
Copy Markdown
Contributor

Summary

  • Migrates MetaMask/snap-tron-wallet#382 into @metamask/tron-wallet-snap.
  • Includes getAccountUpgradeCost in fee calculation for WitnessCreateContract so Network fee and insufficient-balance checks reflect the irreversible 9,999 TRX burn.
  • Replaces the generic "Unsupported contract for simulation" confirmation copy with Super Representative candidate disclosure for this contract type.

References

Test plan

  • yarn workspace @metamask/tron-wallet-snap run test
  • Confirm a WitnessCreateContract signing flow shows the 9,999 TRX burn disclosure instead of unsupported-simulation copy
  • Confirm Network fee / insufficient-balance checks include the account-upgrade cost

Include getAccountUpgradeCost in fee calculation for WitnessCreateContract
so Network fee and insufficient-balance checks reflect the irreversible
protocol burn. Replace the generic unsupported-simulation copy with Super
Representative candidate disclosure on confirmation.

Fixes WPN-1719
@ulissesferreira
ulissesferreira requested a review from a team as a code owner July 30, 2026 15:16
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.

1 participant