Replies: 1 comment
-
Closing because I realize my point isn't correct :
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When the consumer module decodes its genesis data into the
GenesisState
struct, it uses the SDK JSONCodec :interchain-security/x/ccv/consumer/module.go
Lines 112 to 118 in f23cbbb
I found that problematic because it's not compatible with the encoding used by
cometbft/types.GenDoc.SaveAs()
, which uses the stdlib json encoding format.Typical incompatibility for instance :
time.Duration
is encoded in string with SDK JSONCodec, while it is an integer with stdlib JSON.That means a genesis file saved with
GenDoc.SaveAs()
will trigger a panic during theInitGenesis
of the consumer module, because of that. (error isjson: cannot unmarshal number into Go value of type string
).Do you think also it is a problem ?
Beta Was this translation helpful? Give feedback.
All reactions