Closed Julian-dev28 closed 1 year ago
Noting that this issue overlaps with PR #127
@Julian-dev28 , can you approve https://github.com/stellar/soroban-example-dapp/pull/127, I'll merge and should resolve this issue.
@sreuland Absolutely. I'm going to run locally and then I'll approve 👍🏽
@sreuland Do you have an idea why this error appears on the frontend?:
1 of 1 unhandled error
Unhandled Runtime Error
TypeError: Cannot read properties of null (reading 'length')
Call Stack
e.eval
.soroban/abundance-token/node_modules/soroban-client/dist/soroban-client.min.js (2:308484)
l
.soroban/abundance-token/node_modules/soroban-client/dist/soroban-client.min.js (2:300691)
Generator.eval
.soroban/abundance-token/node_modules/soroban-client/dist/soroban-client.min.js (2:302042)
Generator.eval [as next]
.soroban/abundance-token/node_modules/soroban-client/dist/soroban-client.min.js (2:301062)
B
.soroban/abundance-token/node_modules/soroban-client/dist/soroban-client.min.js (2:306691)
a
.soroban/abundance-token/node_modules/soroban-client/dist/soroban-client.min.js (2:306904)
I am having the same problems
yes, to confirm seeing the same when running latest from the https://github.com/stellar/soroban-example-dapp/pull/127 for standalone:
# in one terminal
$ quickstart.sh standalone
# in second terminal
$ npm run clean
$ NETWORK=standalone npm run setup
$ npm run dev
i built with un-minified source, and it looks like getting an error on simulate transaction call to rpc server, there has been a new version of core/rpc for preview 10 as of late today, so, will try those newer versions in the quickstart here and see if changes results
thanks to @chadoh for help on troubleshooting this issue, identified new version of soroban-client, 0.9.2 helped resolve this issue, have pushed new fix commit onto the pr - https://github.com/stellar/soroban-example-dapp/pull/127
running that for standalone locally:
cargo install_soroban
npm run clean
NETWORK=standalone npm run setup
npm run dev
note, you have to fund your wallet address on friendbot for the target network first.
@sreuland its working for me!
What version are you using?
soroban-cli alias : 0.9.1 soroban-sdk: 0.9.2 docker: 4.20.1 example dapp: main (https://github.com/stellar/soroban-example-dapp/commit/ab19ca1869fb7e600baec8ca6f0f6d2028bf20c7)
What did you do?
Installed soroban alias and added to
./target/bin/
PATHI followed the steps for standalone deployment as listed here
First, build the image
Then, In one terminal, run the backend docker containers and wait for them to start:
Next, run the initialization script for the standalone network
What did you expect to see?
A series of deployed contract IDs and success messages
What did you see instead?
The following error message:
PT2: Using zsh
What did you do?
Ran the set up above and then tried to use zsh to for the standalone deployment
What did you expect to see?
A series of deployed contract IDs and success messages
What did you see instead?
the following message:
Reference: https://github.com/stellar/soroban-example-dapp/blob/main/initialize.sh#L60C1-L70C1
PT3: Using Docker
What did you do?
Ran the set up above and then tried to use docker to for the standalone deployment
What did you expect to see?
A series of deployed contract IDs and success messages
What did you see instead?
the following message:
Reference: https://github.com/stellar/soroban-example-dapp/blob/main/initialize.sh#L56-L59