From faad49688e2322cb9a28f2b3e223ee90287700ed Mon Sep 17 00:00:00 2001 From: vincent Date: Thu, 31 Dec 2020 23:04:28 +0800 Subject: [PATCH] x/distribution: fix setting withdraw address (#8240) --- x/distribution/keeper/msg_server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/distribution/keeper/msg_server.go b/x/distribution/keeper/msg_server.go index 4cad3c948c..bff869ee55 100644 --- a/x/distribution/keeper/msg_server.go +++ b/x/distribution/keeper/msg_server.go @@ -29,7 +29,7 @@ func (k msgServer) SetWithdrawAddress(goCtx context.Context, msg *types.MsgSetWi if err != nil { return nil, err } - withdrawAddress, err := sdk.AccAddressFromBech32(msg.DelegatorAddress) + withdrawAddress, err := sdk.AccAddressFromBech32(msg.WithdrawAddress) if err != nil { return nil, err }