Skip to content

Conversation

iChristwin
Copy link

The previous sample code had some syntax errors and also when used in w3bstream as a wasm, results in a error message alloc is nil... wasm trap: wasm 'unreachable' instruction executed.
image

After digging around a bit I found the SDK repo by @DLHTX 👉 https://github.com/machinefi/w3bstream-compile-rust. I was able to use the SDk to successfully execute ws_get_data.

This fix is directly derived from the SDK source code and it works just fine

The previous sample code had some syntax errors and also when used in w3bstream as a `wasm`, results in a error message `alloc is nil`... `wasm trap: wasm 'unreachable' instruction executed`. After digging around a bit I found the SDK repo by @DLHTX 👉 https://github.com/machinefi/w3bstream-compile-rust. I was able to use the SDk to successfully execute `ws_get_data`. 

This fix is directly derived from the SDK source code and it works just fine
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant