From 65c39313c174aa56d14c7ae68f4f94c3e03ca9e0 Mon Sep 17 00:00:00 2001 From: Milan Steiner Date: Wed, 13 Apr 2022 13:10:26 +0200 Subject: [PATCH] Fix typo --- packages/amino/src/coins.spec.ts | 2 +- packages/amino/src/coins.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/amino/src/coins.spec.ts b/packages/amino/src/coins.spec.ts index c80a57fc..e8f67f69 100644 --- a/packages/amino/src/coins.spec.ts +++ b/packages/amino/src/coins.spec.ts @@ -169,7 +169,7 @@ describe("coins", () => { denom: "ucosm", }; expect(() => addCoins(balance1, balance2)).toThrowError( - /Trying to add two coins with different demoms/i, + /Trying to add two coins with different denoms/i, ); }); }); diff --git a/packages/amino/src/coins.ts b/packages/amino/src/coins.ts index 702fb2af..23a6ae22 100644 --- a/packages/amino/src/coins.ts +++ b/packages/amino/src/coins.ts @@ -72,7 +72,7 @@ export function parseCoins(input: string): Coin[] { * Function to sum up coins with type Coin */ export function addCoins(lhs: Coin, rhs: Coin): Coin { - if (lhs.denom !== rhs.denom) throw new Error("Trying to add two coins with different demoms"); + if (lhs.denom !== rhs.denom) throw new Error("Trying to add two coins with different denoms"); return { amount: Decimal.fromAtomics(lhs.amount, 0).plus(Decimal.fromAtomics(rhs.amount, 0)).atomics, denom: lhs.denom,