-
Notifications
You must be signed in to change notification settings - Fork 4.1k
fix(client/v2): *big.Int unmarshal (cherry-pick #21853) #24361
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
Conversation
📝 WalkthroughWalkthroughThe changes update the changelog by adding a new bug fix entry for unmarshalling Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant Builder
participant DecimalHandler as decType/decValue
participant Math
User ->> Builder: Provide input for cosmos.Dec flag
Builder ->> Builder: Lookup "cosmos.Dec" in scalarFlagTypes
Builder ->> DecimalHandler: Call NewValue()
DecimalHandler -->> Builder: Return new decValue (default "0")
User ->> Builder: Set flag value (string input)
Builder ->> DecimalHandler: Invoke Set(input)
DecimalHandler ->> Math: Parse input using LegacyNewDecFromStr
Math -->> DecimalHandler: Return parsed decimal or error
DecimalHandler -->> Builder: Provide processed value or error
Builder -->> User: Return final flag value or error
📜 Recent review detailsConfiguration used: CodeRabbit UI ⛔ Files ignored due to path filters (3)
📒 Files selected for processing (3)
🧰 Additional context used🧬 Code Definitions (1)client/v2/autocli/flag/legacy_dec.go (1)
⏰ Context from checks skipped due to timeout of 90000ms (13)
🔇 Additional comments (9)
✨ Finishing Touches
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
CodeRabbit Configuration File (
|
sigs.k8s.io/yaml v1.4.0 // indirect | ||
) | ||
|
||
replace cosmossdk.io/client/v2 => ../client/v2 |
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.
in a follow-up this should be removed and a pseudo version of client/v2 should be used.
) (#24365) Co-authored-by: julienrbrt <julien@rbrt.fr> Co-authored-by: Alex | Interchain Labs <alex@interchainlabs.io>
Description
Cherry-picks #21853
Steps to reproduce:
simd tx protocolpool create-continuous-fund alice 0.1
Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
!
in the type prefix if API or client breaking changeCHANGELOG.md
Reviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
Please see Pull Request Reviewer section in the contributing guide for more information on how to review a pull request.
I have...
Summary by CodeRabbit