Skip to content

feat: gate scene transactions by recipient in web3 confirmation popup#9486

Draft
alejandro-jimenez-dcl wants to merge 1 commit into
devfrom
feat/web3-confirmation-recipient-gate
Draft

feat: gate scene transactions by recipient in web3 confirmation popup#9486
alejandro-jimenez-dcl wants to merge 1 commit into
devfrom
feat/web3-confirmation-recipient-gate

Conversation

@alejandro-jimenez-dcl

Copy link
Copy Markdown
Contributor

Decode the real recipient of a scene-initiated transaction (native transfer, ERC-20 transfer, or opaque contract call) and classify it into a trust gate shown to social-login users, who cannot review the raw transaction in an external wallet.

  • Resolve the recipient to a scene creator, a DCL profile, or an external wallet, checking scene creator before profile so creator sends show the creator gate rather than the generic profile gate.
  • Present the gate as a second confirmation after the initial transaction popup.
  • Recognize MANA across all known networks (mainnet/Goerli/Sepolia/ Polygon/Mumbai/Amoy) and render it as a sprite in the copy.
  • Add a debug-panel test-transaction tool; pass params as a JSON object so the dapp web-signer path can read the recipient.
  • Thread a cancellation token through the transaction confirmation flow.

Pull Request Description

What does this PR change?

Test Instructions

Steps (standard run):

metaforge explorer run XXXX  # ← replace with this PR number

Expected result:

Steps (fresh account):

metaforge account create --clear
metaforge explorer run XXXX  # ← replace with this PR number

Expected result:

Automation (if applicable):

metaforge explorer test XXXX

Prerequisites

  • List any required setup steps
  • Include environment/configuration requirements

Test Steps

  1. First step
  2. Second step
  3. Expected result after step 2
  4. ...

Additional Testing Notes

  • Note any edge cases to verify
  • Mention specific areas that need careful testing
  • List known limitations or potential issues

Quality Checklist

  • Changes have been tested locally
  • Documentation has been updated (if required)
  • Performance impact has been considered
  • For SDK features: Test scene is included

Code Review Reference

Please review our Branch & PR Standards before submitting. It explains the automated review flow, QA/DEV approval requirements, and what each label does — especially useful for first-time contributors.

Decode the real recipient of a scene-initiated transaction (native
transfer, ERC-20 transfer, or opaque contract call) and classify it into
a trust gate shown to social-login users, who cannot review the raw
transaction in an external wallet.

- Resolve the recipient to a scene creator, a DCL profile, or an external
  wallet, checking scene creator before profile so creator sends show the
  creator gate rather than the generic profile gate.
- Present the gate as a second confirmation after the initial transaction
  popup.
- Recognize MANA across all known networks (mainnet/Goerli/Sepolia/
  Polygon/Mumbai/Amoy) and render it as a sprite in the copy.
- Add a debug-panel test-transaction tool; pass params as a JSON object so
  the dapp web-signer path can read the recipient.
- Thread a cancellation token through the transaction confirmation flow.
@github-actions

github-actions Bot commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

badge

Build skipped — no changes detected under Explorer/.

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