Comments (6)
I realized that in fact the project is using soroban 0.3.2, so I moved to that version and I had to fix initialize.sh
Everything in the #74 PR
from soroban-example-dapp.
So I am still very confused about this:
With the lastest commit da61364 the following packages are used:
- rs-soroban-env v0.0.11
- rs-soroban-sdk v0.3.2
- rs-stellar-xdr v0.0.11
- js-soroban-client (npm package: soroban-client) v0.2.1
Following leigh recommendation the recommended setups say that: for this setup
- soroban-cli should be 0.3.3
- js-soroban-client should be in v0.2.0
- stellar quickstart docker should be: stellar/quickstart:soroban-dev@sha256:8046391718f8e58b2b88b9c379abda3587bb874689fa09b2ed4871a764ebda27
So, after installing soroban-cli 0.3.3 I got the following error while ./initialize.sh
When using standalone:
Using standalone network
Fund token admin account from friendbot
{
"type": "https://stellar.org/horizon-errors/server_error",
"title": "Internal Server Error",
"status": 500,
"detail": "An error occurred while processing this request. This is usually due to a bug within the server software. Trying this request again may succeed if the bug is transient. Otherwise, please contact the system administrator."
}Deploy the token contract
error: transaction submission failed
Build the crowdfund contract
cargo fmt --all
cargo build --target wasm32-unknown-unknown --release
Finished release [optimized] target(s) in 0.06s
cd target/wasm32-unknown-unknown/release/ && \
for i in *.wasm ; do \
ls -l "$i"; \
done
-rwxrwxr-x 2 wachuma wachuma 8371 dic 13 08:15 soroban_crowdfund_contract.wasm
Deploy the crowdfund contract
error: transaction submission failed
Contract deployed succesfully with ID:
Initialize the crowdfund contract
error: transaction simulation failed: Could not unmarshal transaction
What I did is to use that docker version, in this commit and it did solve the deploy problem...
Deploy the token contract
success
success
Token contract was deployed with TOKEN_ID: 83ef099c3dd37c454ff87b16c20b2f7db6be2467832161b40d7c8fee72850a16
Build the crowdfund contract
cargo fmt --all
cargo build --target wasm32-unknown-unknown --release
Finished release [optimized] target(s) in 0.06s
cd target/wasm32-unknown-unknown/release/ && \
for i in *.wasm ; do \
ls -l "$i"; \
done
-rwxrwxr-x 2 wachuma wachuma 8371 dic 13 08:15 soroban_crowdfund_contract.wasm
Deploy the crowdfund contract
success
success
Crowdunfund contract was deployed with ID: 6d8a27e42a2f124e2dfc1575ddc52327c5c5d96a9ebb59c90db713c24252917d
Initialize the crowdfund contract
success
null
However, when running the front end:
- Apparently I read correctly the information from the blockchain (wallet/hooks/useContractValue.tsx is working correctly.
- But there are errors when trying to sign messages (wallet/hooks/useSendTransaction.tsx failing)
I am now debugging, and will write the errors in a next Comment
from soroban-example-dapp.
First error, when Minting:
timeout
it not defined in useSendTransaction
- fixed
After fixing it, I can say that Minting is working, however, apparently it does only mints 42 EXT??
When "approve and back up this project"
error while handleSubmit: Unable to send message to extension
Error: XDR Read Error: Unknown ScHashType member for value 32
at x
I guess that the error comes from trying to send the transaction to the wallet, because when minting it does gives a private jey
from soroban-example-dapp.
My guess is that there is something wronw while building the transaction
Because even if I hardcode the secret key, it's bugging in SorobanClient.Server.simulateTransaction(txn);
from soroban-example-dapp.
There are too many things here. This issue will onlye refer to "Failing to deploy contract with soroban-client 0.2.1"
What I did is to use that docker version, in this commit and it did solve the deploy problem...
So I'm opening a pull request for this:
from soroban-example-dapp.
Pull request accepted
#77
from soroban-example-dapp.
Related Issues (20)
- Fix standalone network deployment HOT 9
- "Connect Wallet" button doesn't work & Contract information does not appear HOT 1
- Soroban lucky
- Web3
- Web35
- Web3
- Web45
- I found error while running this dapp HOT 3
- I have
- Update for Protocol 21 and latest CLI+stellar-sdk versions HOT 4
- Make this behave more like a `--frontend-template`
- Wallet | Feature Request HOT 1
- ODHack: Add Stellar Wallets Kit HOT 11
- LambdaHackWeek: Add Multi-Language Support HOT 2
- ODHack: Improve Frontend HOT 15
- ODHack: Update Local Deployment with Docker Workflow HOT 7
- LambdaHackWeek: Fix Error: `You Must Provide a signTransaction Function` HOT 2
- ODHack: Fix Node Workflow Build Issue HOT 9
- ODHack: Create a Dashboard for User Analytics HOT 22
- ODHack: Implement Social Login(OAuth Authentication) HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from soroban-example-dapp.