Skip to content

Commit

Permalink
allow making transfers for tokens with 0 decimals (#460)
Browse files Browse the repository at this point in the history
  • Loading branch information
SGiaccobasso authored Oct 2, 2024
1 parent dc14386 commit 2212d30
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/stupid-sheep-fly.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@axelarjs/maestro": patch
---

allow making transfers for tokens with 0 decimals
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,8 @@ export function useInterchainTokenServiceTransferMutation(

const mutation = useMutation<void, unknown, UseSendInterchainTokenInput>({
mutationFn: async ({ amount }) => {
if (!(decimals && address && config.gas)) {
// allow token transfers with decimals === 0 but not undefined
if (!(decimals !== undefined && address && config.gas)) {
return;
}

Expand Down

0 comments on commit 2212d30

Please sign in to comment.