Skip to content
This repository has been archived by the owner on Apr 21, 2021. It is now read-only.

running build() without parameters causes (node:22117) UnhandledPromiseRejectionWarning: Error: gasPrice is not defined. #108

Open
paulvi opened this issue Apr 20, 2021 · 2 comments

Comments

@paulvi
Copy link

paulvi commented Apr 20, 2021

https://docs.instadapp.io/setup/ shows example as

dsa.build().then(console.log);

and says that build has
>an optional Object parameter

However running build() without parameters causes

(node:22117) UnhandledPromiseRejectionWarning: Error: gasPrice is not defined.
at f.exports.getTxObj (/Users/user/Workspaces/Ethereum/Instadapp/instadapp-get-started/node_modules/dsa-sdk/build/dsa.min.js:12:395221)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async /Users/user/Workspaces/Ethereum/Instadapp/instadapp-get-started/node_modules/dsa-sdk/build/dsa.min.js:12:41342
(

So either docs or current version of sdk are wrong.

@Sowmayjain
Copy link
Contributor

@paulvi could you use this SDK instead?

https://github.com/instadapp/dsa-connect

@paulvi
Copy link
Author

paulvi commented Apr 20, 2021

Do you mean that "Documentation" link from https://instadapp.io/ was wrong
and the content of https://docs.instadapp.io/ is of no use?

So https://github.com/instadapp/dsa-connect is newer SDK version

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

No branches or pull requests

2 participants