From 22e9fc276d049e8b6901655682777dd50ba239df Mon Sep 17 00:00:00 2001 From: mossid Date: Wed, 9 May 2018 22:30:32 +0200 Subject: [PATCH] GetDelegated -> GetBondAmount --- types/validator_set.go | 2 +- x/stake/types.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/types/validator_set.go b/types/validator_set.go index af534747f5..faa21277bb 100644 --- a/types/validator_set.go +++ b/types/validator_set.go @@ -34,7 +34,7 @@ type ValidatorSetKeeper interface { type Delegation interface { GetDelegator() Address GetValidator() Address - GetDelegated() Rat + GetBondAmount() Rat } type DelegationSet interface { diff --git a/x/stake/types.go b/x/stake/types.go index 7bd03b38f9..da5953f9fb 100644 --- a/x/stake/types.go +++ b/x/stake/types.go @@ -364,7 +364,7 @@ func (b DelegatorBond) GetValidator() sdk.Address { return b.CandidateAddr } -func (b DelegatorBond) GetDelegated() sdk.Rat { +func (b DelegatorBond) GetBondAmount() sdk.Rat { return b.Shares }