Commit dbe06cd
committed
feat(sdk-core): skip amount validation for hbar claim rewards self-transfer
HBAR claim rewards uses a 1-tinybar self-transfer where the wire format
merges [{acct,-1},{acct,+1}] into [{acct,0}]. This causes a legitimate
amount mismatch (buildParams="1" vs explained="0") in
validateBuiltStakingTransaction. Add isHbarClaimRewards() guard to skip
the amount check when sender == recipient for HBAR claim rewards.
Ticket: SI-6051 parent b6be824 commit dbe06cd
1 file changed
Lines changed: 16 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
201 | 205 | | |
202 | 206 | | |
203 | 207 | | |
| |||
433 | 437 | | |
434 | 438 | | |
435 | 439 | | |
436 | | - | |
437 | | - | |
438 | | - | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
439 | 452 | | |
440 | 453 | | |
441 | 454 | | |
| |||
0 commit comments