Giter Club home page Giter Club logo

Comments (4)

WilfredTA avatar WilfredTA commented on September 27, 2024

First must execute the build script in the simple_coin_transfer directory, which will generate the wasm file in question: https://github.com/spacemeshos/svm/blob/master/simple-coin-transfer-template/build.sh

I will caution that this repository will be undergoing very large changes in the coming months, so please do not regard its current design & implementation as stable or indicative of its future direction :)

Please let me know if this resolves your problem.

from svm.

joyosive avatar joyosive commented on September 27, 2024

@WilfredTA thanks
I acknowledge that this repository will undergo changes.

I executed the build script in the simple_coin_transfer directory, then executed cargo build it was successful with a warning.
The cargo test fails with following error

error: couldn't read crates/host/runtime/tests/wasm/runtime_calldata.wasm: No such file or directory (os error 2)
--> crates/host/runtime/tests/runtime_tests.rs:133:26
|
133 | WasmFile::Binary(include_bytes!("wasm/runtime_calldata.wasm")),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in the macro include_bytes (in Nightly builds, run with -Z macro-backtrace for more info)

from svm.

WilfredTA avatar WilfredTA commented on September 27, 2024

In general, if this error appears anywhere, locate the parent directory of the missing file. There will likely be a build.sh script that needs to be executed.

This should certainly be refactored so that a single command (e.g., a make recipe) can be used to build all of the relevant script dependencies. Apologies for this friction when attempting to experiment with the svm.

Anyway, this is the build.sh file that should be run to address the latest error you've reported https://github.com/spacemeshos/svm/blob/master/crates/host/runtime/tests/wasm/calldata/build.sh

from svm.

joyosive avatar joyosive commented on September 27, 2024

@WilfredTA
Okay got it, make recipe will be great!

Thank you for helping out

from svm.

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.