stellar / soroban-example-dapp

End-to-End Example Soroban Dapp
Apache License 2.0
1.03k stars 835 forks source link

Server Error Error: Unsupported address type #110

Closed GHesericsu closed 1 year ago

GHesericsu commented 1 year ago

What version are you using?

"version": "0.1.0",

What did you do?

I ran npm run dev after I got the backend running locally.

What did you expect to see?

I can spin out the frontend at localhost and see the UI.

What did you see instead?

Screen Shot 2023-05-17 at 6 27 00 PM Screen Shot 2023-05-17 at 6 27 17 PM

The UI was able to run if I delete this variable SorobanClient.Address.contract(Buffer.from(Constants.CrowdfundId, 'hex')).toScVal()

The issue and error looks like it's coming out from stellar-base/lib/address.js file

esteblock commented 1 year ago

Hello. This is strange. Can you check that you have Constants.CrowdfundId? Did you run the initialize.sh script?

esteblock commented 1 year ago

What do you have when you run in your console:

cat .soroban/crowdfund_id
GHesericsu commented 1 year ago

It all works now. Looks like initialize.sh failed on me last time that's all. Thank you!