-
Notifications
You must be signed in to change notification settings - Fork 63
Fix/wallet upgrades #175
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
base: master
Are you sure you want to change the base?
Fix/wallet upgrades #175
Changes from 5 commits
78f17c0
5b680a0
eb66481
4260d0a
f86e0ba
9737e36
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -274,9 +274,9 @@ describe("Wallet", () => { | |
| target_wallet_id: wallet.getId(), | ||
| }]); | ||
| const result = await wallet.hasTrust( | ||
| TrustRelationship.ENTITY_TRUST_TYPE.send, | ||
| wallet, | ||
| TrustRelationship.ENTITY_TRUST_REQUEST_TYPE.receive, | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As a result of my change on hasTrust method referencing the trust type parameter now, I also think this test should expect a "receive" request type (should not be sending an entity trust type). Since wallet2 (actor, receiver) is sending a receive request to wallet (target, sender). |
||
| wallet2, | ||
| wallet, | ||
| ); | ||
| expect(result).eq(true); | ||
| fn1.restore(); | ||
|
|
||
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.
This hasTrust method in wallet model was not actually referencing the trustType parameter sent in, so I changed it to be more flexible to reuse for checking other request types