GithubHelp home page GithubHelp logo

Comments (6)

esteblock avatar esteblock commented on September 27, 2024

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.

esteblock avatar esteblock commented on September 27, 2024

So I am still very confused about this:
With the lastest commit da61364 the following packages are used:

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.

esteblock avatar esteblock commented on September 27, 2024

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.

esteblock avatar esteblock commented on September 27, 2024

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.

esteblock avatar esteblock commented on September 27, 2024

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:

#77

from soroban-example-dapp.

esteblock avatar esteblock commented on September 27, 2024

Pull request accepted
#77

from soroban-example-dapp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.