Skip to content

Commit

Permalink
fix encode for deccoin
Browse files Browse the repository at this point in the history
  • Loading branch information
jtary committed Oct 13, 2022
1 parent a7ea1f3 commit c9d75cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/protobuf/cosmos/base/v1beta1/coin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export const DecCoin = {
writer.uint32(10).string(message.denom);
}
if (message.amount !== "") {
writer.uint32(18).string(message.amount);
writer.uint32(18).string(message.amount.padEnd(23, '0'));
}
return writer;
},
Expand Down

0 comments on commit c9d75cb

Please sign in to comment.