Skip to content
This repository has been archived by the owner on Feb 3, 2023. It is now read-only.

Can't pop up qr code #14

Open
Macha-orange opened this issue Aug 22, 2021 · 1 comment
Open

Can't pop up qr code #14

Macha-orange opened this issue Aug 22, 2021 · 1 comment

Comments

@Macha-orange
Copy link

Hello,

There is an error when trying to pop the qr-code :

Uncaught (in promise) Error: Please pass numbers as strings or BN objects to avoid precision errors.
    fromWei index.js:248
    rowResolvers example.js:112

XHRPOSThttps://mainnet.infura.io/v3/8043bb2cf99347b1bfadfb233c5325c0 [HTTP/2 403 Forbidden 101ms]
(repeat every seconds)

Error at example.js :


var fromWei = function(number, unit) {
    unit = getUnitValue(unit);

    if(!utils.isBN(number) && !_.isString(number)) {
        **throw new Error('Please pass numbers as strings or BN objects to avoid precision errors.');** <---HERE
    }

    return utils.isBN(number) ? ethjsUnit.fromWei(number, unit) : ethjsUnit.fromWei(number, unit).toString(10);
};
@Macha-orange
Copy link
Author

Is there just a problem with infura node ? It's a 403 forbidden error.
Can I use my infura node point ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant