Skip to content

Commit

Permalink
Some more migrate tests
Browse files Browse the repository at this point in the history
  • Loading branch information
assafmo committed Jun 13, 2023
1 parent 73f808f commit 7a2f012
Show file tree
Hide file tree
Showing 2 changed files with 356 additions and 4 deletions.
15 changes: 11 additions & 4 deletions src/tx/compute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ export interface MsgUpdateAdminParams extends MsgParams {
/** New admin address to be set */
new_admin: string;
/** The address of the secret contract */
contract: string;
contract_address: string;
}

/** MsgUpdateAdmin sets a new admin for a secret contract. */
Expand All @@ -446,7 +446,11 @@ export class MsgUpdateAdmin implements Msg {
encode: async () =>
(
await import("../protobuf/secret/compute/v1beta1/msg")
).MsgUpdateAdmin.encode(this.params).finish(),
).MsgUpdateAdmin.encode({
sender: this.params.sender,
new_admin: this.params.new_admin,
contract: this.params.contract_address,
}).finish(),
};
}

Expand All @@ -462,7 +466,7 @@ export interface MsgClearAdminParams extends MsgParams {
/** Sender is the actor that signed the messages (should be the current admin) */
sender: string;
/** Contract is the address of the smart contract */
contract: string;
contract_address: string;
}

/** MsgClearAdmin removes any admin stored for a secret contract. */
Expand All @@ -476,7 +480,10 @@ export class MsgClearAdmin implements Msg {
encode: async () =>
(
await import("../protobuf/secret/compute/v1beta1/msg")
).MsgClearAdmin.encode(this.params).finish(),
).MsgClearAdmin.encode({
sender: this.params.sender,
contract: this.params.contract_address,
}).finish(),
};
}

Expand Down
Loading

0 comments on commit 7a2f012

Please sign in to comment.