Skip to content

Commit

Permalink
Test parseCoins with token factory denom
Browse files Browse the repository at this point in the history
  • Loading branch information
webmaster128 committed Feb 10, 2024
1 parent 4c9d929 commit 5eb664f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/amino/src/coins.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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", () => {
Expand Down

0 comments on commit 5eb664f

Please sign in to comment.