From 94353a597496f59bda321c7794d209d434afb87f Mon Sep 17 00:00:00 2001 From: Assaf Morami Date: Wed, 14 Jun 2023 08:48:09 +0300 Subject: [PATCH] Fix amino encoding for Msg{Update,Clear}Admin --- src/tx/compute.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/tx/compute.ts b/src/tx/compute.ts index 60cc17d9..6ffdf5d8 100644 --- a/src/tx/compute.ts +++ b/src/tx/compute.ts @@ -457,7 +457,11 @@ export class MsgUpdateAdmin implements Msg { async toAmino(): Promise { return { type: "wasm/MsgUpdateAdmin", - value: this.params, + value: { + sender: this.params.sender, + new_admin: this.params.new_admin, + contract: this.params.contract_address, + }, }; } } @@ -490,7 +494,10 @@ export class MsgClearAdmin implements Msg { async toAmino(): Promise { return { type: "wasm/MsgClearAdmin", - value: this.params, + value: { + sender: this.params.sender, + contract: this.params.contract_address, + }, }; } }