-
Notifications
You must be signed in to change notification settings - Fork 23
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
Add transaction record map #911
Add transaction record map #911
Conversation
OK, I stand by my original argument. This type is added to provided an implementer for a foreign trait. I vote we add this to dev, and I can hack on adding the functionality necessary to add the trait as a subsequent separate PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tested and approved
the Deref works out to save a lot of coding! how elegant!
@fluidvanadium 's original hack was to add a native type that could have a foreign trait
zcash_client_backend::data_api::InputSource
implemented on it.I've used a wrapper pattern with Deref and DerefMut implementations to all the "current" interface to be extended with the new interface (InputSource) while staying back compatible with the existing usage patterns.
This PR also pulls in the implementation of InputSource on TransactionRecordMap (I kept the same name as @fluidvanadium for the wrapper.)