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

Error signing transaction #119

Open
xpanvictor opened this issue Mar 16, 2023 · 5 comments
Open

Error signing transaction #119

xpanvictor opened this issue Mar 16, 2023 · 5 comments

Comments

@xpanvictor
Copy link

TypeError: e2.get_obj_for_encoding is not a function
    f transaction.ts:1286
    node_modules @perawallet_connect.js:32041
    node_modules @perawallet_connect.js:32044
    node_modules @perawallet_connect.js:32038
    node_modules @perawallet_connect.js:32038
    node_modules @perawallet_connect.js:31669
    s index-a764fc7a.js:1
    signTransaction index-a764fc7a.js:1
    signTxns connect.ts:36
    Nav nav.tsx:79
    Nav nav.tsx:86
    React 8
    workLoop scheduler.development.js:266
    flushWork scheduler.development.js:239
    performWorkUntilDeadline scheduler.development.js:533
    js scheduler.development.js:571
    js scheduler.development.js:633
    __require2 chunk-EXHNUZ76.js:18
    js index.js:6
    __require2 chunk-EXHNUZ76.js:18
    React 2
    __require2 chunk-EXHNUZ76.js:18
    js React
    __require2 chunk-EXHNUZ76.js:18
    js React
    __require2 chunk-EXHNUZ76.js:18
    <anonymous> react-dom_client.js:42
​

I have used this to construct the transactions

let addr: string = ""
    const addrRes = Store.find(constants.USER_ADDRESS)
    if (addrRes.ok) {
        addr = addrRes.msg
    }else {
        toast.error("User address not found")
    }
    return txns.map(r_txn => {
        return {txn: txnToUint8Array(r_txn), signers: [addr]}
    })
@xpanvictor
Copy link
Author

I've decoded the txn from uint8 and now this is what i get

PeraWalletConnectError: Invalid Input: The requested signer is not in the User Wallet
    i index-78321e71.js:1
    node_modules @perawallet_connect.js:29064
    s2 index-78321e71.js:1
    promise callback*i2 index-78321e71.js:1
    l2 index-78321e71.js:1
    promise callback*i2 index-78321e71.js:1
    node_modules @perawallet_connect.js:28725
    s index-78321e71.js:1
    signTransactionWithMobile index-78321e71.js:1
    node_modules @perawallet_connect.js:29121
    node_modules @perawallet_connect.js:28725
    s index-78321e71.js:1
    signTransaction index-78321e71.js:1
    signTxns connect.ts:40
    Nav nav.tsx:79
    Nav nav.tsx:86
    React 8
    workLoop scheduler.development.js:266
    flushWork scheduler.development.js:239
    performWorkUntilDeadline scheduler.development.js:533
    js scheduler.development.js:571
    js scheduler.development.js:633
    __require2 chunk-Q3JBEIDJ.js:18
    js index.js:6
    __require2 chunk-Q3JBEIDJ.js:18
    React 2
    __require2 chunk-Q3JBEIDJ.js:18
    js React
    __require2 chunk-Q3JBEIDJ.js:18
    js React

@yigiterdev
Copy link
Contributor

Hey @xpanvictor,
Do you facing this issue when you try to sign with mobile app?

@xpanvictor
Copy link
Author

@yigiterdev yes. it's when i use my phone to scan the qr code on my laptop

@yigiterdev
Copy link
Contributor

Mobile team found issue. Just for confirm, are you using Android?

@xpanvictor
Copy link
Author

yes @yigiterdev

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

2 participants