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

refactor/feat(abigen,types): add bytes::Bytes static methods, refactor struct declaration #2089

Merged
merged 5 commits into from Jan 30, 2023

Conversation

DaniPopes
Copy link
Collaborator

@DaniPopes DaniPopes commented Jan 29, 2023

Motivation

we can make abigen'd contracts' bytecode static slices instead of allocating it at runtime with Lazy, using bytes::Bytes::from_static

Solution

see commit list;

technically a breaking change since #bytecode_name is not Lazy<Bytes> anymore but just Bytes, but the interaction should be the exact same since Lazy derefs into Bytes

PR Checklist

  • Added Tests
  • Added Documentation
  • Updated the changelog
  • Breaking changes

Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

good idea.
lgtm

@gakonst gakonst merged commit 93e1850 into gakonst:master Jan 30, 2023
@DaniPopes DaniPopes deleted the refactor/abigen-struct-decl branch February 17, 2023 06:53
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.

None yet

3 participants