Skip to content

Commit

Permalink
Fix amino encoding for Msg{Update,Clear}Admin
Browse files Browse the repository at this point in the history
  • Loading branch information
assafmo committed Jun 14, 2023
1 parent 85b26d3 commit 94353a5
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/tx/compute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,11 @@ export class MsgUpdateAdmin implements Msg {
async toAmino(): Promise<AminoMsg> {
return {
type: "wasm/MsgUpdateAdmin",
value: this.params,
value: {
sender: this.params.sender,
new_admin: this.params.new_admin,
contract: this.params.contract_address,
},
};
}
}
Expand Down Expand Up @@ -490,7 +494,10 @@ export class MsgClearAdmin implements Msg {
async toAmino(): Promise<AminoMsg> {
return {
type: "wasm/MsgClearAdmin",
value: this.params,
value: {
sender: this.params.sender,
contract: this.params.contract_address,
},
};
}
}

0 comments on commit 94353a5

Please sign in to comment.