Closed Zetazzz closed 2 weeks ago
don't encode strings(numbers and bigint too) if empty OR undefined (so change the if statement in the encode function to just if (message.denom0))
Cases need to be handled: string, number, bigint
e.g.:
encode(message: BaseAccount, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.address !== "") {
Should be:
encode(message: BaseAccount, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.address && message.address !== "") {
don't encode strings(numbers and bigint too) if empty OR undefined (so change the if statement in the encode function to just if (message.denom0))
Cases need to be handled: string, number, bigint
e.g.:
Should be: