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

Example for upload code fails #365

Open
przmyst opened this issue Sep 8, 2023 · 0 comments
Open

Example for upload code fails #365

przmyst opened this issue Sep 8, 2023 · 0 comments

Comments

@przmyst
Copy link

przmyst commented Sep 8, 2023

Running the example fails with the following error.

Example:
https://docs.terra.money/develop/feather-js/smart-contracts/#upload-code

Error:

D:\terra\node_modules\@terra-money\feather.js\dist\client\lcd\Wallet.js:50
            .accountInfo(this.key.accAddress(this.lcd.config[chainID].prefix))
                                                                      ^

TypeError: Cannot read properties of undefined (reading 'prefix')
    at Wallet.accountNumberAndSequence (D:\terra\node_modules\@terra-money\feather.js\dist\client\lcd\Wallet.js:50:71)
    at Wallet.<anonymous> (D:\terra\node_modules\@terra-money\feather.js\dist\client\lcd\Wallet.js:94:51)
    at step (D:\terra\node_modules\@terra-money\feather.js\dist\client\lcd\Wallet.js:33:23)
    at Object.next (D:\terra\node_modules\@terra-money\feather.js\dist\client\lcd\Wallet.js:14:53)
    at D:\terra\node_modules\@terra-money\feather.js\dist\client\lcd\Wallet.js:8:71
    at new Promise (<anonymous>)
    at __awaiter (D:\terra\node_modules\@terra-money\feather.js\dist\client\lcd\Wallet.js:4:12)
    at Wallet.createAndSignTx (D:\terra\node_modules\@terra-money\feather.js\dist\client\lcd\Wallet.js:86:16)
    at file:///D:/terra/main.js:31:34
    at ModuleJob.run (node:internal/modules/esm/module_job:194:25)
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

1 participant