x/distribution: fix setting withdraw address (#8240)

This commit is contained in:
vincent 2020-12-31 23:04:28 +08:00 committed by GitHub
parent d316013f77
commit faad49688e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}