Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ export function CreateTokenAssetPage(props: {
chain: contract.chain,
client: props.client,
contents: values.airdropAddresses.map((recipient) => ({
amount: BigInt(recipient.quantity),
amount: recipient.quantity,
recipient: recipient.address,
})),
tokenAddress: contract.address,
Expand All @@ -200,8 +200,8 @@ export function CreateTokenAssetPage(props: {
const contract = getDeployedContract({ chain: values.chain });

const totalAmountToAirdrop = values.airdropAddresses.reduce(
(acc, recipient) => acc + BigInt(recipient.quantity),
0n,
(acc, recipient) => acc + Number(recipient.quantity),
0,
);

const entrypoint = await getDeployedEntrypointERC20({
Expand Down
2 changes: 1 addition & 1 deletion packages/thirdweb/src/tokens/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export type PoolConfig = {
};

export type DistributeContent = {
amount: bigint;
amount: string;
recipient: string;
};

Expand Down
Loading