Skip to content

Is there a documentation on how to run a simple example with wasmi? #595

Answered by Robbepop
djolertrk asked this question in Q&A
Discussion options

You must be logged in to vote

The wasmi interpreter repository provides a wasmi_cli application out of the box that allows to run raw Wasm files and soon WASI compatible Wasm files with the following command when your work directory is in the wasmi repository:

cargo run --package wasmi_cli <WASM_FILE> <FUNCTION_NAME> [<FUNC_ARGS>]*

Where WASM_FILE is the Wasm file path, FUNCTION_NAME is the name of the exported function of the Wasm file you want to call and [<FUNC_ARGS>]* is the optional number of arguments for the called function.

However, in your special case this tool won't help you since you apparently want to run ink! smart contracts using wasmi. However, ink! smart contracts require a special environment that i…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@djolertrk
Comment options

@Robbepop
Comment options

Answer selected by Robbepop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants