-
Notifications
You must be signed in to change notification settings - Fork 725
[Refactor] Create generic CallResult and connect it to getNewAddress* functions. #2453
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] Create generic CallResult and connect it to getNewAddress* functions. #2453
Conversation
43506de to
38f95cb
Compare
38f95cb to
9f24a69
Compare
random-zebra
left a comment
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.
Nice. Code review ACK, with some ideas/questions.
54d513a to
4f31b65
Compare
…::getNewAddress` and `CWallet::getNewStakingAddress` methods.
…l::getNewAddress` and `WalletModel::getNewStakingAddress` methods.
…lResult<Destination> abstraction. No more ref args. Plus moved Destination functions implementation to cpp file.
4f31b65 to
c4fb14d
Compare
random-zebra
left a comment
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.
utACK c4fb14d
Fuzzbawls
left a comment
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.
ACK c4fb14d
Created a generic
CallResultclass, inheriting fromOperationResult, to be used instead ofPairResult. Improving and cleaning several flows, removing the ugly ref inputs used to return the functions result object and the error string.Changes scoped to the
CWallet::getNewAddress,CWallet::getNewStakingAddress,WalletModel::getNewAddressandWalletModel::getNewStakingAddressfunctions only.Future: can be used in several other places to cleanup long function signatures with ref args used to return the result object and the error string with a boolean flag.