Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,7 @@ pub enum WasmMsg {
},
/// this instantiates a new contracts from previously uploaded wasm code
Instantiate {
admin: Option<String>,
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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<String>,
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
Expand Down
2 changes: 2 additions & 0 deletions go-cosmwasm/types/v010/msg_v010.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down