From e48fed1e27bd277ce8d4ed5a4126ab86b71a027f Mon Sep 17 00:00:00 2001 From: Ruaridh Date: Thu, 15 Jul 2021 15:16:25 +0100 Subject: [PATCH] fix strings that said deposit instead of borrow (#962) --- x/hard/types/borrow.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/x/hard/types/borrow.go b/x/hard/types/borrow.go index e10cc31c..80f8bc83 100644 --- a/x/hard/types/borrow.go +++ b/x/hard/types/borrow.go @@ -26,10 +26,10 @@ func NewBorrow(borrower sdk.AccAddress, amount sdk.Coins, index BorrowInterestFa // Validate deposit validation func (b Borrow) Validate() error { if b.Borrower.Empty() { - return fmt.Errorf("Depositor cannot be empty") + return fmt.Errorf("Borrower cannot be empty") } if !b.Amount.IsValid() { - return fmt.Errorf("Invalid deposit coins: %s", b.Amount) + return fmt.Errorf("Invalid borrow coins: %s", b.Amount) } if err := b.Index.Validate(); err != nil { @@ -40,7 +40,7 @@ func (b Borrow) Validate() error { } func (b Borrow) String() string { - return fmt.Sprintf(`Deposit: + return fmt.Sprintf(`Borrow: Borrower: %s Amount: %s Index: %s