worldwide-asset-exchange / waxjs

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

Cannot read property 'replace' of undefined #71

Closed vaibhavyadav12 closed 2 years ago

vaibhavyadav12 commented 3 years ago

I am using 0.0.7 version of @waxio/waxjs in js. I am trying to call the wax.login() it gives me error Cannot read property 'replace' of undefined I believe there's an error with the library - wax.js . I have tried running the sdk example as well as the full html example as represented in the docs.

Can anyone help me out on this error ? Thanks

brett91ag commented 3 years ago

I get the same error using the example code with the current version. I don't get the error when I use v0.0.15

robrigo commented 2 years ago

Double check how you initialize the waxjs object. I had to add the rpcEndpoint key.

const wax = new waxjs.WaxJS({ rpcEndpoint: GLOBAL_VARS.WAX_RPC_ENDPOINT });
includenull commented 2 years ago

The constructor changed with with version 1.0, wax developer hive is still outdated unfortunately.