From 2212d30216b3af7b6d2c2bfce0318bb3de62678b Mon Sep 17 00:00:00 2001 From: SGiaccobasso Date: Tue, 1 Oct 2024 23:57:41 -0300 Subject: [PATCH 1/2] allow making transfers for tokens with 0 decimals (#460) --- .changeset/stupid-sheep-fly.md | 5 +++++ .../hooks/useInterchainTokenServiceTransferMutation.ts | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .changeset/stupid-sheep-fly.md diff --git a/.changeset/stupid-sheep-fly.md b/.changeset/stupid-sheep-fly.md new file mode 100644 index 000000000..dd3ec84b3 --- /dev/null +++ b/.changeset/stupid-sheep-fly.md @@ -0,0 +1,5 @@ +--- +"@axelarjs/maestro": patch +--- + +allow making transfers for tokens with 0 decimals diff --git a/apps/maestro/src/features/SendInterchainToken/hooks/useInterchainTokenServiceTransferMutation.ts b/apps/maestro/src/features/SendInterchainToken/hooks/useInterchainTokenServiceTransferMutation.ts index 33e73aa17..2f0d3eacc 100644 --- a/apps/maestro/src/features/SendInterchainToken/hooks/useInterchainTokenServiceTransferMutation.ts +++ b/apps/maestro/src/features/SendInterchainToken/hooks/useInterchainTokenServiceTransferMutation.ts @@ -156,7 +156,8 @@ export function useInterchainTokenServiceTransferMutation( const mutation = useMutation({ mutationFn: async ({ amount }) => { - if (!(decimals && address && config.gas)) { + // allow token transfers with decimals === 0 but not undefined + if (!(decimals !== undefined && address && config.gas)) { return; } From 71eac312d4ddf9a0cdaaa32301f23158997737f9 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 2 Oct 2024 00:01:37 -0300 Subject: [PATCH 2/2] [changesets] Apply version updates (#461) Co-authored-by: github-actions[bot] --- .changeset/stupid-sheep-fly.md | 5 ----- apps/maestro/CHANGELOG.md | 6 ++++++ apps/maestro/package.json | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) delete mode 100644 .changeset/stupid-sheep-fly.md diff --git a/.changeset/stupid-sheep-fly.md b/.changeset/stupid-sheep-fly.md deleted file mode 100644 index dd3ec84b3..000000000 --- a/.changeset/stupid-sheep-fly.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@axelarjs/maestro": patch ---- - -allow making transfers for tokens with 0 decimals diff --git a/apps/maestro/CHANGELOG.md b/apps/maestro/CHANGELOG.md index bd7f7ce7a..fc8496d90 100644 --- a/apps/maestro/CHANGELOG.md +++ b/apps/maestro/CHANGELOG.md @@ -1,5 +1,11 @@ # @axelarjs/maestro +## 0.3.27 + +### Patch Changes + +- [#460](https://github.com/axelarnetwork/axelarjs/pull/460) [`2212d30216b3af7b6d2c2bfce0318bb3de62678b`](https://github.com/axelarnetwork/axelarjs/commit/2212d30216b3af7b6d2c2bfce0318bb3de62678b) Thanks [@SGiaccobasso](https://github.com/SGiaccobasso)! - allow making transfers for tokens with 0 decimals + ## 0.3.26 ### Patch Changes diff --git a/apps/maestro/package.json b/apps/maestro/package.json index b255198c8..69299acbe 100644 --- a/apps/maestro/package.json +++ b/apps/maestro/package.json @@ -1,6 +1,6 @@ { "name": "@axelarjs/maestro", - "version": "0.3.26", + "version": "0.3.27", "private": true, "publishConfig": { "access": "restricted"