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
feat(wallet): use set_account_metadata on holds to make operation atomic #1338
Conversation
WalkthroughThe changes across various files primarily focus on enhancing the debit transaction process within a ledger system. This includes updating references and types for program resources, correcting data representations, and introducing metadata handling in debit transactions. The modifications aim to make debit holds atomic and address issues related to incorrect balance holds, thereby improving the reliability and functionality of the wallet management system. Changes
Assessment against linked issues
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 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 as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
fc67162
to
3d34b0d
Compare
3d34b0d
to
8aec220
Compare
8aec220
to
e171538
Compare
ee/wallets/pkg/hold.go
Outdated
@@ -1,6 +1,7 @@ | |||
package wallet | |||
|
|||
import ( | |||
"fmt" |
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.
The addition of the fmt
import is necessary for the debug print statement introduced. However, using fmt.Println
for debugging in library code is not advisable.
Consider removing the debug print statement or replacing it with a proper logging mechanism.
- fmt.Println(v)
Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.
"fmt" | |
"fmt" |
e171538
to
82937a8
Compare
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.
Review Status
Actionable comments generated: 0
Configuration used: CodeRabbit UI
Files selected for processing (4)
- ee/wallets/pkg/api/handler_wallets_debit_test.go (11 hunks)
- ee/wallets/pkg/manager.go (2 hunks)
- ee/wallets/pkg/numscript/debit-wallet.num (1 hunks)
- ee/wallets/pkg/scripts.go (3 hunks)
Files skipped from review as they are similar to previous changes (4)
- ee/wallets/pkg/api/handler_wallets_debit_test.go
- ee/wallets/pkg/manager.go
- ee/wallets/pkg/numscript/debit-wallet.num
- ee/wallets/pkg/scripts.go
Fixes ENG-726
Summary by CodeRabbit