Open jmzhuzhonghua opened 5 years ago
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!
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.
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$