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

feat: private field access for RawXxx types #535

Merged
merged 1 commit into from
Jan 9, 2024

Conversation

xJonathanLEI
Copy link
Owner

Certain custom Account implementations require access to these internal fields, as they do more than just signing on the transaction hash. Exposing these fields offers the maximum flexibility on how accounts sign transactions.

Not exposing these fields results in exotic implementations like this one. So it's really not good.

Adding getters instead of just making the fields pub though, to still retain a certain degree of encapsulation.

Certain custom `Account` implementations require access to these
internal fields, as they do more than just signing on the transaction
hash. Exposing these fields offers the maximum flexibility on how
accounts sign transactions.
@xJonathanLEI xJonathanLEI merged commit 0857bd6 into master Jan 9, 2024
24 checks passed
@xJonathanLEI xJonathanLEI deleted the dev/expose_raw_fields branch January 9, 2024 21:42
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.

1 participant