Merge PR #2033: staking lcd uses owner address not pubkey address

This commit is contained in:
Rigel
2018-08-15 15:04:01 +02:00
committed by Christopher Goes
parent a4bcbc972e
commit 5fff217e9b
3 changed files with 44 additions and 76 deletions
+1 -4
View File
@@ -376,11 +376,8 @@ func TestValidatorQuery(t *testing.T) {
require.Equal(t, 1, len(pks))
validator1Owner := sdk.AccAddress(pks[0].Address())
validator := getValidator(t, port, validator1Owner)
bech32ValAddress, err := sdk.Bech32ifyValPub(pks[0])
require.NoError(t, err)
assert.Equal(t, validator.PubKey, bech32ValAddress, "The returned validator does not hold the correct data")
assert.Equal(t, validator.Owner, validator1Owner, "The returned validator does not hold the correct data")
}
func TestBonding(t *testing.T) {