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

Allow funds to be transferred to module on instantiation #65

Conversation

Buckram123
Copy link
Collaborator

@Buckram123 Buckram123 commented Sep 6, 2023

See the title

Checklist

  • CI is green.
  • Changelog updated.

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Sep 6, 2023

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 3e0ae38
Status: ✅  Deploy successful!
Preview URL: https://ab15b965.abstract-docs.pages.dev
Branch Preview URL: https://misha-abs-177-allow-funds-to.abstract-docs.pages.dev

View logs

@@ -286,14 +304,15 @@ impl ModuleConfiguration {

pub fn from_storage(storage: &dyn Storage, module: &ModuleInfo) -> Self {
Copy link
Contributor

Choose a reason for hiding this comment

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

These are at least 3 load operations for a single module. Can we combine their information into a single data store so we only have to load once?

Copy link
Collaborator Author

@Buckram123 Buckram123 Sep 7, 2023

Choose a reason for hiding this comment

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

Yep, changed storage to have distinct map for "default" items for module config as well!

@CyberHoward CyberHoward merged commit 8f0e7dc into main Sep 7, 2023
12 checks passed
@CyberHoward CyberHoward deleted the misha/abs-177-allow-funds-to-be-transferred-to-module-on-instantiation branch September 7, 2023 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants