Commit f1daa8b
Ryan X. Charles
Fix resharing and webhooks tests and API
Summary:
Fixed two issues:
1) The webhooks removeWebhook API call returns the number removed, not the
walletId or other properties.
2) The API has been updated recently to support "resharing", which is when you
need to share the same wallet with someone again because they have lost or
reset their password. To do this, you must set "reshare=true" when sharing the
wallet with them. Older API calls that implicitly relied on resharing now must
be updated to set reshare=true, or they will fail. This commit fixes some tests
that are actually resharing, and thus need to set reshare=true. Also, a check
on the type of the reshare property is added to the shareWallet method.
Reviewers: benchan
Reviewed By: benchan
Subscribers: ben
Differential Revision: https://phabricator.bitgo.com/D8011 parent 8e96eb9 commit f1daa8b
3 files changed
Lines changed: 10 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
661 | 661 | | |
662 | 662 | | |
663 | 663 | | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
664 | 668 | | |
665 | 669 | | |
666 | 670 | | |
| |||
706 | 710 | | |
707 | 711 | | |
708 | 712 | | |
| 713 | + | |
709 | 714 | | |
710 | 715 | | |
711 | 716 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
| 161 | + | |
161 | 162 | | |
162 | 163 | | |
163 | 164 | | |
| |||
184 | 185 | | |
185 | 186 | | |
186 | 187 | | |
| 188 | + | |
187 | 189 | | |
188 | 190 | | |
189 | 191 | | |
| |||
329 | 331 | | |
330 | 332 | | |
331 | 333 | | |
| 334 | + | |
332 | 335 | | |
333 | 336 | | |
334 | 337 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
| 151 | + | |
| 152 | + | |
157 | 153 | | |
158 | 154 | | |
159 | 155 | | |
| |||
0 commit comments