fix: revert Bitcoin inbound if there no memo provided by user#3752
fix: revert Bitcoin inbound if there no memo provided by user#3752morde08 merged 2 commits intorelease/v29from
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. 🗂️ Base branches to auto review (1)
Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## release/v29 #3752 +/- ##
===============================================
- Coverage 64.44% 64.43% -0.01%
===============================================
Files 469 469
Lines 32891 32899 +8
===============================================
+ Hits 21195 21199 +4
- Misses 10727 10731 +4
Partials 969 969
🚀 New features to boost your workflow:
|
| // make a deposit without memo | ||
| utxos := r.ListDeployerUTXOs() | ||
| txHash, err := r.SendToTSSFromDeployerWithMemo(0.1, utxos[:1], []byte{}) | ||
| txHash, err := r.SendToTSSFromDeployerWithMemo(0.1, utxos[:1], nil) |
There was a problem hiding this comment.
Just a note for the develop PR: Let's cover for non existant and empty memo
There was a problem hiding this comment.
Yeah. Both non existant and empty memo are covered in here.
Description
The v29 is able to revert Bitcoin deposits that carry incorrectly formatted memo (e.g., invalid receiver address), but it cannot properly revert deposits that carry no memo at all, which are supposed be reverted.
This fix will allow no-memo deposits to be able to go through ZetaChain and get funds reverted.
How Has This Been Tested?