Use base request data for sender
This commit is contained in:
@@ -42,7 +42,7 @@ func setContractAdminHandlerFn(cliCtx client.Context) http.HandlerFunc {
|
|||||||
}
|
}
|
||||||
|
|
||||||
msg := &types.MsgUpdateAdmin{
|
msg := &types.MsgUpdateAdmin{
|
||||||
Sender: cliCtx.GetFromAddress().String(),
|
Sender: req.BaseReq.From,
|
||||||
NewAdmin: req.Admin,
|
NewAdmin: req.Admin,
|
||||||
Contract: contractAddr,
|
Contract: contractAddr,
|
||||||
}
|
}
|
||||||
@@ -70,7 +70,7 @@ func migrateContractHandlerFn(cliCtx client.Context) http.HandlerFunc {
|
|||||||
}
|
}
|
||||||
|
|
||||||
msg := &types.MsgMigrateContract{
|
msg := &types.MsgMigrateContract{
|
||||||
Sender: cliCtx.GetFromAddress().String(),
|
Sender: req.BaseReq.From,
|
||||||
Contract: contractAddr,
|
Contract: contractAddr,
|
||||||
CodeID: req.CodeID,
|
CodeID: req.CodeID,
|
||||||
MigrateMsg: req.MigrateMsg,
|
MigrateMsg: req.MigrateMsg,
|
||||||
|
|||||||
@@ -107,7 +107,7 @@ func instantiateContractHandlerFn(cliCtx client.Context) http.HandlerFunc {
|
|||||||
}
|
}
|
||||||
|
|
||||||
msg := types.MsgInstantiateContract{
|
msg := types.MsgInstantiateContract{
|
||||||
Sender: cliCtx.GetFromAddress().String(),
|
Sender: req.BaseReq.From,
|
||||||
CodeID: codeID,
|
CodeID: codeID,
|
||||||
InitFunds: req.Deposit,
|
InitFunds: req.Deposit,
|
||||||
InitMsg: req.InitMsg,
|
InitMsg: req.InitMsg,
|
||||||
@@ -138,7 +138,7 @@ func executeContractHandlerFn(cliCtx client.Context) http.HandlerFunc {
|
|||||||
}
|
}
|
||||||
|
|
||||||
msg := types.MsgExecuteContract{
|
msg := types.MsgExecuteContract{
|
||||||
Sender: cliCtx.GetFromAddress().String(),
|
Sender: req.BaseReq.From,
|
||||||
Contract: contractAddr,
|
Contract: contractAddr,
|
||||||
Msg: req.ExecMsg,
|
Msg: req.ExecMsg,
|
||||||
SentFunds: req.Amount,
|
SentFunds: req.Amount,
|
||||||
|
|||||||
Reference in New Issue
Block a user