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

Rename Extern to Deps #589

Merged
merged 1 commit into from
Oct 19, 2020
Merged

Rename Extern to Deps #589

merged 1 commit into from
Oct 19, 2020

Conversation

webmaster128
Copy link
Member

Step 1 for #588. The VM part work cause big merge conflicts with the Wasmer Reborn work, so I'd do that later.

Copy link
Member

@ethanfrey ethanfrey left a comment

Choose a reason for hiding this comment

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

lgtm

/// Designed to allow easy dependency injection at runtime.
/// This cannot be copied or cloned since it would behave differently
/// for mock storages and a bridge storage in the VM.
pub struct Deps<S: Storage, A: Api, Q: Querier> {
Copy link
Member

Choose a reason for hiding this comment

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

Nice to pull this out. I was surprised to find it in traits when investigating

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah this was probably the simplest way when the type was introduced to bundle the three traits

@webmaster128 webmaster128 merged commit eab6008 into master Oct 19, 2020
@webmaster128 webmaster128 deleted the rename-to-deps branch October 19, 2020 18:24
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