worldwide-asset-exchange / waxjs

Javascript API for integration with the WAX Cloud Wallet.
MIT License
126 stars 103 forks source link

Signing Issue #72

Closed abdulmanan7 closed 2 years ago

abdulmanan7 commented 3 years ago

Sometimes it works sometimes throw the following message. transaction declares authority '{"actor":"myaccountname","permission":"active"}', but does not have signatures for it under a provided delay of 0 ms, provided permissions [], provided keys [], and a delay max limit of 3888000000 ms

I check waxjs in console the object is fine, i enable autologin and do check before transaction but failed

    let isAutoLoginAvailable = await wax.isAutoLoginAvailable();
    if (!isAutoLoginAvailable) {
        await wax.login();
    }
    let userAccount = wax.userAccount;
    try {
        let result = await wax.api.transact({
            actions: [{
                account: 'atomicassets',
                name: 'transfer',
                authorization: [{
                    actor: userAccount,
                    permission: 'active',
                }],
                data: data,
            }]
        }, {
            blocksBehind: 12,
            expireSeconds: 120,
            broadcast: true,
            sign: true,
        }).then((d) => console.log(d)).catch(onErrorCallback)
        return result;
    } catch (error) {
        return onErrorCallback(error)
    }
eloventure commented 3 years ago

Here is what helped me a lot: expireSeconds: 120 -> change to expireSeconds: 10 and blocksBehind: 12 -> blocksBehind: 1

Farfar10 commented 2 years ago

but does not have signatures for it under a provided delay of 0 ms, provided permissions [], provided keys [], and a delay max limit of 3888000000 ms

and

Caught exception: TypeError: signatures is not iterable

same error, help

Farfar10 commented 2 years ago

this? https://github.com/worldwide-asset-exchange/waxjs/pull/64

includenull commented 2 years ago

this? #64

Yes, we hope to have this RP tested and implemented soon.

includenull commented 2 years ago

waxjs 1.0.4 should resolve these issues.