Skip to content

Commit

Permalink
Use base request data for sender
Browse files Browse the repository at this point in the history
  • Loading branch information
alpe committed Nov 25, 2020
1 parent b0b407d commit 0b7b703
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions x/wasm/client/rest/new_tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
Expand Down Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions x/wasm/client/rest/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 0b7b703

Please sign in to comment.