proto-signing: Fix missing fromPartial changes

This commit is contained in:
willclarktech 2021-02-09 12:22:04 +00:00
parent dfe39c034e
commit cf4dcb9970
No known key found for this signature in database
GPG Key ID: 551A86E2E398ADF7

View File

@ -22,11 +22,11 @@ function getTypeName(typeUrl: string): string {
describe("protobuf demo", () => {
it("works with generated static code", () => {
const coin = Coin.fromJSON({
const coin = Coin.fromPartial({
denom: "ucosm",
amount: "1234567890",
});
const msgSend = MsgSend.fromJSON({
const msgSend = MsgSend.fromPartial({
fromAddress: "cosmos1pkptre7fdkl6gfrzlesjjvhxhlc3r4gmmk8rs6",
toAddress: "cosmos1qypqxpq9qcrsszg2pvxq6rs0zqg3yyc5lzv7xu",
amount: [coin],