From 85cee9cec21cbcb53eec65a615dc6917b5a00341 Mon Sep 17 00:00:00 2001 From: Lucio Rubens Date: Thu, 29 Feb 2024 16:36:24 -0300 Subject: [PATCH] fix: sign addpkg with empty deposit --- src/proto/gno/vm.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/proto/gno/vm.ts b/src/proto/gno/vm.ts index d9bd147..43d594c 100644 --- a/src/proto/gno/vm.ts +++ b/src/proto/gno/vm.ts @@ -272,12 +272,12 @@ export const MsgAddPackage = { }, toJSON(message: MsgAddPackage): unknown { - const obj: any = {}; + const obj = createBaseMsgAddPackage(); if (message.creator !== '') { obj.creator = message.creator; } if (message.package !== undefined) { - obj.package = MemPackage.toJSON(message.package); + obj.package = MemPackage.toJSON(message.package) as MemPackage; } if (message.deposit !== '') { obj.deposit = message.deposit;