-
Notifications
You must be signed in to change notification settings - Fork 276
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
Simplify macro generation of versioned containers #1675
Labels
iroha2-dev
The re-implementation of a BFT hyperledger in RUST
Comments
could you please mark iroha2 issues with corresponding label |
@kuvaldini yes, I forgot. I'll try to be more careful |
Closed
appetrosyan
added a commit
that referenced
this issue
Dec 6, 2021
…ms (#1665) * use type instead of wrapper struct for inner versioned items Signed-off-by: Marin Veršić <marin.versic101@gmail.com> * rename unwrap methods on versioned structures Signed-off-by: Marin Veršić <marin.versic101@gmail.com> Co-authored-by: Aleksandr Petrosyan <a-p-petrosyan@yandex.ru>
appetrosyan
added a commit
to appetrosyan/iroha
that referenced
this issue
Dec 8, 2021
…rsioned items (hyperledger#1665) * use type instead of wrapper struct for inner versioned items Signed-off-by: Marin Veršić <marin.versic101@gmail.com> * rename unwrap methods on versioned structures Signed-off-by: Marin Veršić <marin.versic101@gmail.com> Co-authored-by: Aleksandr Petrosyan <a-p-petrosyan@yandex.ru>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Our current macro implementation of versioned containers creates wrapper structure for each versioned item. Instead of using wrapper structure we should use private type alias. This will reduce the amount of code generated by the macro and will make our API look much nicer
The text was updated successfully, but these errors were encountered: