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{
|
||||
Sender: cliCtx.GetFromAddress().String(),
|
||||
Sender: req.BaseReq.From,
|
||||
NewAdmin: req.Admin,
|
||||
Contract: contractAddr,
|
||||
}
|
||||
@@ -70,7 +70,7 @@ func migrateContractHandlerFn(cliCtx client.Context) http.HandlerFunc {
|
||||
}
|
||||
|
||||
msg := &types.MsgMigrateContract{
|
||||
Sender: cliCtx.GetFromAddress().String(),
|
||||
Sender: req.BaseReq.From,
|
||||
Contract: contractAddr,
|
||||
CodeID: req.CodeID,
|
||||
MigrateMsg: req.MigrateMsg,
|
||||
|
||||
@@ -107,7 +107,7 @@ func instantiateContractHandlerFn(cliCtx client.Context) http.HandlerFunc {
|
||||
}
|
||||
|
||||
msg := types.MsgInstantiateContract{
|
||||
Sender: cliCtx.GetFromAddress().String(),
|
||||
Sender: req.BaseReq.From,
|
||||
CodeID: codeID,
|
||||
InitFunds: req.Deposit,
|
||||
InitMsg: req.InitMsg,
|
||||
@@ -138,7 +138,7 @@ func executeContractHandlerFn(cliCtx client.Context) http.HandlerFunc {
|
||||
}
|
||||
|
||||
msg := types.MsgExecuteContract{
|
||||
Sender: cliCtx.GetFromAddress().String(),
|
||||
Sender: req.BaseReq.From,
|
||||
Contract: contractAddr,
|
||||
Msg: req.ExecMsg,
|
||||
SentFunds: req.Amount,
|
||||
|
||||
Reference in New Issue
Block a user