22 lines
453 B
Go
22 lines
453 B
Go
package types
|
|
|
|
import (
|
|
wasmdtypes "github.com/CosmWasm/wasmd/x/wasm/types"
|
|
)
|
|
|
|
func (msg MsgInstantiateContract) ToWasmd() wasmdtypes.MsgInstantiateContract {
|
|
return wasmdtypes.MsgInstantiateContract{
|
|
Sender: msg.Signer,
|
|
CodeID: msg.CodeID,
|
|
Label: msg.Label,
|
|
Msg: msg.Msg,
|
|
}
|
|
}
|
|
|
|
func (msg MsgStoreCode) ToWasmd() wasmdtypes.MsgStoreCode {
|
|
return wasmdtypes.MsgStoreCode{
|
|
Sender: msg.Signer,
|
|
WASMByteCode: msg.WASMByteCode,
|
|
}
|
|
}
|