From e03c742b4f103f499acc0a89515ded1b991d631a Mon Sep 17 00:00:00 2001 From: Milos Zivkovic Date: Fri, 8 Sep 2023 12:41:38 +0200 Subject: [PATCH] Resolve invalid message decode for MsgAddPackage --- package.json | 2 +- src/wallet/utility/utility.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index a024484..62baec8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@gnolang/gno-js-client", - "version": "1.0.6", + "version": "1.0.7", "description": "Gno JS / TS Client", "main": "./bin/index.js", "author": "Milos Zivkovic ", diff --git a/src/wallet/utility/utility.ts b/src/wallet/utility/utility.ts index 3736530..fd67b43 100644 --- a/src/wallet/utility/utility.ts +++ b/src/wallet/utility/utility.ts @@ -1,4 +1,4 @@ -import { Any, MsgCall, MsgSend } from '../../proto'; +import { Any, MsgAddPackage, MsgCall, MsgSend } from '../../proto'; import { MsgEndpoint } from '../endpoints'; /** @@ -51,7 +51,7 @@ export const decodeTxMessages = (messages: Any[]): any[] => { case MsgEndpoint.MSG_ADD_PKG: return { '@type': m.typeUrl, - ...MsgSend.decode(m.value), + ...MsgAddPackage.decode(m.value), }; default: throw new Error(`unsupported message type ${m.typeUrl}`);