-
Notifications
You must be signed in to change notification settings - Fork 12
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
Turn ewasm_api into a trait #5
Comments
@axic I think that EEI as a trait doesn't make sense. I would bottle it up into a module so that it can still be isolated in its own namespace, but since it isn't an interface for a type it shouldn't be a trait. As a module, EEI methods can be called like |
Whatever is the right Rust term, it would make sense to have the ability to swap out the underlying implementation with preloaded data to enable proper in-Rust testing of the precompiles/runevm. |
Here's some initial work from August: https://github.com/ewasm/ewasm-rust-api/tree/turn-into-trait |
And provide two implementations:
The native one wraps around the C functions, while the scaffolded can be used for testing.
The text was updated successfully, but these errors were encountered: