Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing RPC methods in Node.JS Using WASM POC #11

Closed
RBYGLLS opened this issue Jul 28, 2023 · 4 comments · Fixed by #24
Closed

Testing RPC methods in Node.JS Using WASM POC #11

RBYGLLS opened this issue Jul 28, 2023 · 4 comments · Fixed by #24
Assignees

Comments

@RBYGLLS
Copy link
Contributor

RBYGLLS commented Jul 28, 2023

As a developer using the RustSDK I would like to test, the compiled JS WASM in a node.js environment to ensure the JS WASM runs in both brower environment and node.js environment.

@RBYGLLS RBYGLLS changed the title Testing WASM in Node.JS Testing RPC methods in Node.JS Using WASM POC Aug 3, 2023
@gRoussac
Copy link
Collaborator

Hi @hoffmannjan @RBYGLLS FYI I committed one little basic node server https://github.com/casper-ecosystem/rustSDK/blob/dev/desktop/node/index.ts printing get_peers I think it is enough for Node tests right now, because there is not much difference with web target This can be changed later but basically the React demo app is doing the same thing already.

I added the compilation target in a makefile

https://github.com/casper-ecosystem/rustSDK/blob/dev/casper-wasm-sdk/Makefile#L17

so make build builds both targets.

@hoffmannjan
Copy link

Nice, I was running exactly same tests ;)

@gRoussac
Copy link
Collaborator

@hoffmannjan If i duplicated something just overwrite it thanks don't hesitate

@gRoussac gRoussac linked a pull request Sep 20, 2023 that will close this issue
@gRoussac gRoussac linked a pull request Jan 9, 2024 that will close this issue
@gRoussac
Copy link
Collaborator

gRoussac commented Jan 9, 2024

Closed in #24

@gRoussac gRoussac closed this as completed Jan 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants