Skip to content

Conversation

@cdetrio
Copy link

@cdetrio cdetrio commented Aug 12, 2019

Two debug methods I've been using. Don't merge until we standardize the debug methods we want on both scout.rs and scout.ts.


let mem: WebAssembly.Memory
let res: Buffer
res = Buffer.alloc(32)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This prevents a crash if eth2_savePostStateRoot is never called (cli.ts crashes if res is undefined).

@s1na
Copy link
Collaborator

s1na commented Aug 14, 2019

Should we maybe go with this debug API? ewasm-rust-api has also support for it. We'd have to drop the printStorage methods however.

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.

2 participants