diff --git a/currencies/src/lib.rs b/currencies/src/lib.rs index 7b5748662e0812e1192ef32109c56bdb37f0ef79..873f2ca474c4c6b5e79b293aa97271cb9a7b00ca 100644 --- a/currencies/src/lib.rs +++ b/currencies/src/lib.rs @@ -246,7 +246,7 @@ impl<T: Trait> MultiCurrency<T::AccountId> for Module<T> { to: &T::AccountId, amount: Self::Balance, ) -> DispatchResult { - if amount.is_zero() { + if amount.is_zero() || from == to { return Ok(()); } if currency_id == T::GetNativeCurrencyId::get() { diff --git a/traits/src/auction.rs b/traits/src/auction.rs index 9fbaba44840e45ba7274de9f3e8cb33b0f1adb2f..acbfda53dbfc268fe7c07aff9be06c76db4a7b3a 100644 --- a/traits/src/auction.rs +++ b/traits/src/auction.rs @@ -51,7 +51,7 @@ pub struct OnNewBidResult<BlockNumber> { /// Hooks for auction to handle bids. pub trait AuctionHandler<AccountId, Balance, BlockNumber, AuctionId> { /// Called when new bid is received. - /// The return value deteermine if the bid should be accepted and update auction end time. + /// The return value determines if the bid should be accepted and update auction end time. /// Implementation should reserve money from current winner and refund previous winner. fn on_new_bid( now: BlockNumber,