Skip to content
This repository has been archived by the owner on Feb 14, 2021. It is now read-only.

build pwasm-tutorial/step-0 error #48

Open
jmzhuzhonghua opened this issue Apr 24, 2019 · 2 comments · May be fixed by #49
Open

build pwasm-tutorial/step-0 error #48

jmzhuzhonghua opened this issue Apr 24, 2019 · 2 comments · May be fixed by #49

Comments

@jmzhuzhonghua
Copy link

I went to pwasm-tutorial/step-0, and run ./build.sh. But there is error as followings:

jm02@jm02:/project/pwasm-tutorial/step-0$ ./build.sh
Finished release [optimized] target(s) in 0.02s
Build error: Packing failed due to module structure error: No exported deploy symbol. Sure used correct libraries for building contracts?
jm02@jm02:
/project/pwasm-tutorial/step-0$

@Noah-Vincenz
Copy link

running

'cargo build --release --target wasm32-unknown-unknown'

and then

'wasm-build --target=wasm32-unknown-unknown --skip-optimization ./target pwasm_tutorial_contract'

instead of ./build.sh solved the problem for me!

@Noah-Vincenz
Copy link

running

'cargo build --release --target wasm32-unknown-unknown'

and then

'wasm-build --target=wasm32-unknown-unknown --skip-optimization ./target pwasm_tutorial_contract'

instead of ./build.sh solved the problem for me!

The above method resulted in some limitations. I have now finally managed to resolve the issue by downgrading pwasm-utils-cli version from 0.7.0 to 0.6.0.

geigerzaehler pushed a commit to geigerzaehler/pwasm-tutorial that referenced this issue Jul 11, 2019
The was code produced with `pwasm-utils-cli` above version 0.6.0 does
not execute properly on the parity client. We require version 0.6.0 in
the readme.

Fixes openethereum#48
@geigerzaehler geigerzaehler linked a pull request Jul 11, 2019 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants