Commit 2ca5c72
committed
feat(sdk-coin-near): reapply consolidation validation
This commit modifies the NEAR consolidation verification flow by:
1. Obtaining the base address directly from wallet.coinSpecific().rootAddress
2. Updating the verifyConsolidationToBaseAddress method signature
3. Adding error handling for missing root address
- Tested native and token consolidation on express
TICKET: WP-39681 parent f49da78 commit 2ca5c72
File tree
4 files changed
+16
-36
lines changed- modules/sdk-coin-near
- src
- test/unit
4 files changed
+16
-36
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
| |||
990 | 989 | | |
991 | 990 | | |
992 | 991 | | |
993 | | - | |
| 992 | + | |
994 | 993 | | |
995 | 994 | | |
996 | 995 | | |
| |||
1043 | 1042 | | |
1044 | 1043 | | |
1045 | 1044 | | |
1046 | | - | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
1047 | 1049 | | |
1048 | 1050 | | |
1049 | 1051 | | |
| |||
1061 | 1063 | | |
1062 | 1064 | | |
1063 | 1065 | | |
| 1066 | + | |
1064 | 1067 | | |
1065 | | - | |
1066 | | - | |
| 1068 | + | |
| 1069 | + | |
1067 | 1070 | | |
1068 | | - | |
1069 | | - | |
1070 | | - | |
1071 | | - | |
1072 | | - | |
1073 | | - | |
1074 | 1071 | | |
1075 | | - | |
| 1072 | + | |
1076 | 1073 | | |
1077 | 1074 | | |
1078 | 1075 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
110 | 113 | | |
111 | 114 | | |
112 | 115 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
543 | 543 | | |
544 | 544 | | |
545 | 545 | | |
546 | | - | |
| 546 | + | |
547 | 547 | | |
548 | 548 | | |
549 | 549 | | |
| |||
593 | 593 | | |
594 | 594 | | |
595 | 595 | | |
596 | | - | |
597 | | - | |
598 | | - | |
599 | | - | |
600 | | - | |
601 | | - | |
602 | | - | |
603 | | - | |
604 | | - | |
605 | | - | |
606 | 596 | | |
607 | 597 | | |
608 | 598 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
287 | | - | |
| 287 | + | |
288 | 288 | | |
289 | 289 | | |
290 | 290 | | |
| |||
335 | 335 | | |
336 | 336 | | |
337 | 337 | | |
338 | | - | |
339 | | - | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | 338 | | |
349 | 339 | | |
350 | 340 | | |
| |||
0 commit comments