Skip to content

Commit

Permalink
Merge pull request #472 from rabbitholegg/mmackz/basepaint/amount-zero
Browse files Browse the repository at this point in the history
fix(basepaint): fix amount zero issue
  • Loading branch information
mmackz authored Aug 8, 2024
2 parents 367c590 + 31c37c1 commit 10879aa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/red-peaches-raise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rabbitholegg/questdk-plugin-basepaint": patch
---

fix for amount zero
3 changes: 2 additions & 1 deletion packages/basepaint/src/Basepaint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
} from '@rabbitholegg/questdk'
import { type Address } from 'viem'
import { BASE_CHAIN_ID, CONTRACT_ADDRESS, MINT_ABI } from './constants'
import { formatAmount } from '@rabbitholegg/questdk-plugin-utils'

export const mint = async (
mint: MintActionParams,
Expand All @@ -17,7 +18,7 @@ export const mint = async (
input: {
$abi: MINT_ABI,
day: tokenId,
count: amount,
count: formatAmount(amount),
},
})
}
Expand Down

0 comments on commit 10879aa

Please sign in to comment.