diff --git a/cosmwasm/enclaves/shared/cosmwasm-types/v0.10/src/types.rs b/cosmwasm/enclaves/shared/cosmwasm-types/v0.10/src/types.rs index 1af8c88fa..29531815e 100644 --- a/cosmwasm/enclaves/shared/cosmwasm-types/v0.10/src/types.rs +++ b/cosmwasm/enclaves/shared/cosmwasm-types/v0.10/src/types.rs @@ -283,6 +283,7 @@ pub enum WasmMsg { }, /// this instantiates a new contracts from previously uploaded wasm code Instantiate { + admin: Option, code_id: u64, /// callback_code_hash is the hex encoded hash of the code. This is used by Secret Network to harden against replaying the contract /// It is used to bind the request to a destination contract in a stronger way than just the contract address which can be faked diff --git a/cosmwasm/enclaves/shared/cosmwasm-types/v1.0/src/results/cosmos_msg.rs b/cosmwasm/enclaves/shared/cosmwasm-types/v1.0/src/results/cosmos_msg.rs index 62f32e3c9..bf59d5462 100644 --- a/cosmwasm/enclaves/shared/cosmwasm-types/v1.0/src/results/cosmos_msg.rs +++ b/cosmwasm/enclaves/shared/cosmwasm-types/v1.0/src/results/cosmos_msg.rs @@ -162,6 +162,7 @@ pub enum WasmMsg { /// This is translated to a [MsgInstantiateContract](https://github.com/CosmWasm/wasmd/blob/v0.16.0-alpha1/x/wasm/internal/types/tx.proto#L47-L61). /// `sender` is automatically filled with the current contract's address. Instantiate { + admin: Option, code_id: u64, /// code_hash is the hex encoded hash of the code. This is used by Secret Network to harden against replaying the contract /// It is used to bind the request to a destination contract in a stronger way than just the contract address which can be faked diff --git a/go-cosmwasm/types/v010/msg_v010.go b/go-cosmwasm/types/v010/msg_v010.go index b23ab4c9a..064e1056c 100644 --- a/go-cosmwasm/types/v010/msg_v010.go +++ b/go-cosmwasm/types/v010/msg_v010.go @@ -145,6 +145,8 @@ type ExecuteMsg struct { } type InstantiateMsg struct { + // Optional admin address to be set + Admin string `json:"admin,omitempty"` // CodeID is the reference to the wasm byte code as used by the Cosmos-SDK CodeID uint64 `json:"code_id"` // Custom addition to support binding a message to specific code to harden against offline & replay attacks