Skip to content

Conversation

@furszy
Copy link

@furszy furszy commented Jun 25, 2021

Created a generic CallResult class, inheriting from OperationResult, to be used instead of PairResult. 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::getNewAddress and WalletModel::getNewStakingAddress functions 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.

@furszy furszy self-assigned this Jun 25, 2021
@furszy furszy added this to the 6.0.0 milestone Jun 25, 2021
@furszy furszy force-pushed the 2021_generalize_operation_result branch 2 times, most recently from 43506de to 38f95cb Compare July 1, 2021 19:45
@furszy furszy force-pushed the 2021_generalize_operation_result branch from 38f95cb to 9f24a69 Compare July 23, 2021 21:59
Copy link

@random-zebra random-zebra left a 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.

@furszy furszy force-pushed the 2021_generalize_operation_result branch 2 times, most recently from 54d513a to 4f31b65 Compare July 25, 2021 20:58
furszy added 6 commits July 25, 2021 17:59
…::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.
@furszy furszy force-pushed the 2021_generalize_operation_result branch from 4f31b65 to c4fb14d Compare July 25, 2021 20:59
Copy link

@random-zebra random-zebra left a comment

Choose a reason for hiding this comment

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

utACK c4fb14d

Copy link
Collaborator

@Fuzzbawls Fuzzbawls left a comment

Choose a reason for hiding this comment

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

ACK c4fb14d

@furszy furszy merged commit 807b044 into PIVX-Project:master Aug 4, 2021
@furszy furszy deleted the 2021_generalize_operation_result branch November 29, 2022 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants