From 5eb664fa2522334dbb8c3aee9c2bdcf63a20f90f Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Sun, 11 Feb 2024 00:50:18 +0100 Subject: [PATCH] Test parseCoins with token factory denom --- packages/amino/src/coins.spec.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/amino/src/coins.spec.ts b/packages/amino/src/coins.spec.ts index e4b183a56e..ab363fe431 100644 --- a/packages/amino/src/coins.spec.ts +++ b/packages/amino/src/coins.spec.ts @@ -110,6 +110,14 @@ describe("coins", () => { denom: "ibc/7F1D3FCF4AE79E1554D670D1AD949A9BA4E4A3C76C63093E17E446A46061A7A2", }, ]); + + // Token factory denom (https://docs.osmosis.zone/osmosis-core/modules/tokenfactory/) + expect(parseCoins("100000000000factory/osmo1c584m4lq25h83yp6ag8hh4htjr92d954vklzja/ufoo")).toEqual([ + { + amount: "100000000000", + denom: "factory/osmo1c584m4lq25h83yp6ag8hh4htjr92d954vklzja/ufoo", + }, + ]); }); it("trims leading zeros", () => {