You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
running : cargo build --target wasm32-unknown-unknown in rust counter example
moving the count.wasm file into fixtures
run go test -run TestCounterProgram in go counter example
I get this error:
counter_test.go:62
Error: Received unexpected error:
incompatible import type for `state::get`
Caused by:
function types incompatible: expected func of type `(i64, i64) -> (i64)`, found func of type `(i32, i32, i32, i32) -> (i32)`
Test: TestCounterProgram
The text was updated successfully, but these errors were encountered:
This is probably because of the recent merge of #872 and you could have kept the old compiled target, did you moved the compiled binary from x/programs/rust/examples/token/build/wasm32-unknown-unknown/release/token.wasm ? to x/programs/tests/fixture/ (also make sure that you compile using --release)
Thank for your answer !
Yes I was moving the compiled binary into fixture.
Tried with --release after a restart, issue looks resolved and not reproducible anymore 😶
I don't know if it is the right way to do it but:
cargo build --target wasm32-unknown-unknown
in rust counter examplego test -run TestCounterProgram
in go counter exampleI get this error:
The text was updated successfully, but these errors were encountered: