-
Notifications
You must be signed in to change notification settings - Fork 10
GET total_deposited + spender_leaf route completed + tests #416
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
Conversation
Q: > adapter.get_deposit() returns a deposit that uses BigNum instead of the UnifiedNum we need for spendable. How should we deal with that? Q: > NewState uses BalancesMap which uses BigNum instead of UnifiedMap which uses UnifiedNum. How should we deal with that? I will answer the other 2 questions once I review the PR. |
As for the |
Just approved, the PR was not ready with multiple TODOs
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.
Could you please add camelCase
to both structs SpenderResponse
& SpenderLeaf
.
It's missing now
Please note that: we have the address in the route |
…ion-potential-fix changes to precision and tests
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.
Make sure that clippy
passes the checks & run rustfmt
Questions :
create_spendable_document()
helper function like we did for the campaign routes?adapter.get_deposit()
returns a deposit that uses BigNum instead of the UnifiedNum we need for spendable. How should we deal with that?NewState
usesBalancesMap
which usesBigNum
instead ofUnifiedMap
which usesUnifiedNum
. How should we deal with that?