You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When calling create-continuous-fund with a percentage expressed as a float, the command panics.
As I understand, auto-cli generates dynamicpb messages using protoreflect message Descriptor() and Interface(). In the case of MsgCreateContinuousFund, the percentage is set as a human-readable number.
Thus, it fails when decoding, as the unmarshalling of LegacyDec expects a machine representation of the floating-point number.
This looks like an issue, but made me realize we shouldn't be exposing that command at all, given that it's meant to be used only through gov proposals
This looks like an issue, but made me realize we shouldn't be exposing that command at all, given that it's meant to be used only through gov proposals
Is there an existing issue for this?
What happened?
When calling create-continuous-fund with a percentage expressed as a float, the command panics.
As I understand, auto-cli generates dynamicpb messages using protoreflect message Descriptor() and Interface(). In the case of MsgCreateContinuousFund, the percentage is set as a human-readable number.
Thus, it fails when decoding, as the unmarshalling of LegacyDec expects a machine representation of the floating-point number.
cosmos-sdk/x/protocolpool/types/tx.pb.go
Lines 2885 to 2887 in ab6400f
Cosmos SDK Version
main
How to reproduce?
./simd tx protocolpool create-continuous-fund cosmos18mfx85veapt3xs0vdr2cx9skeregs9sqawku8f 0.1 --summary test --title test --deposit 100000stake
The text was updated successfully, but these errors were encountered: