Open pyramation opened 6 hours ago
I'm not sure it's necessary because the encoders/decoders are typed:
looking here I see the function is typed
fromAmino(object: MsgSubmitProposalAmino): MsgSubmitProposal {
const message = createBaseMsgSubmitProposal();
if (object.content !== undefined && object.content !== null) {
message.content = GlobalDecoderRegistry.fromAminoMsg(object.content);
}
message.initialDeposit = object.initial_deposit?.map(e => Coin.fromAmino(e)) || [];
if (object.proposer !== undefined && object.proposer !== null) {
message.proposer = object.proposer;
}
return message;
},
what is the issue here if we have MsgSubmitProposal
From discord:
maybe we can solve using template style like
Object<SomeThing>
potentially could help? Or is this a non-issue and already something that can be done?cc @Zetazzz