Skip to content

Commit

Permalink
Resolve invalid message decode for MsgAddPackage
Browse files Browse the repository at this point in the history
  • Loading branch information
zivkovicmilos committed Sep 8, 2023
1 parent fc472db commit e03c742
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>",
Expand Down
4 changes: 2 additions & 2 deletions src/wallet/utility/utility.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Any, MsgCall, MsgSend } from '../../proto';
import { Any, MsgAddPackage, MsgCall, MsgSend } from '../../proto';
import { MsgEndpoint } from '../endpoints';

/**
Expand Down Expand Up @@ -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}`);
Expand Down

0 comments on commit e03c742

Please sign in to comment.