Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Signing transaction approve button not responding #54

Open
LLHOYH opened this issue Jan 14, 2025 · 1 comment
Open

Signing transaction approve button not responding #54

LLHOYH opened this issue Jan 14, 2025 · 1 comment

Comments

@LLHOYH
Copy link

LLHOYH commented Jan 14, 2025

Image

Hey there. Signing of transaction seem to be working on the browser petra wallet, but not working on petra app. Clicking on 'Approve' button does not trigger any action, but on browser it works.

below is the code:

    const transferTransaction = {
      arguments: [receiver, (amount * 100_000).toString()],
      function: '0x1::coin::transfer',
      type: 'entry_function_payload',
      type_arguments: [
        '0xf22bede237a07e121b56d91a491eb7bcdfd1f5907926a9e58338f964a01b17fa::asset::USDT',
      ],
    }
    console.log(wallet.aptos)
    if (!wallet.aptos) return
    const pendingTransaction =
      await wallet.aptos.signAndSubmitTransaction(transferTransaction)
    console.log(pendingTransaction)

wallet.aptos is just window.aptos

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

No branches or pull requests

3 participants
@LLHOYH and others