Skip to content

Commit

Permalink
fix: add from address to claimTo to support merkle proofs
Browse files Browse the repository at this point in the history
  • Loading branch information
arcoraven committed Aug 30, 2024
1 parent d5f7e6e commit fef8fe9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ export async function erc1155claimTo(fastify: FastifyInstance) {
});
const transaction = claimTo({
contract,
from: fromAddress as Address,
to: receiver,
quantity: BigInt(quantity),
tokenId: BigInt(tokenId),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ export async function erc20claimTo(fastify: FastifyInstance) {
});
const transaction = claimTo({
contract,
from: fromAddress as Address,
to: recipient,
quantity: amount,
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ export async function erc721claimTo(fastify: FastifyInstance) {
});
const transaction = claimTo({
contract,
from: fromAddress as Address,
to: receiver,
quantity: BigInt(quantity),
});
Expand Down
1 change: 1 addition & 0 deletions src/worker/tasks/sendTransactionWorker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ const _sendTransaction = async (
} catch (e: unknown) {
// If the transaction will revert, error.message contains the human-readable error.
const errorMessage = (e as Error)?.message ?? `${e}`;
job.log(`Failed to estimate gas: ${errorMessage}`);
return {
...queuedTransaction,
status: "errored",
Expand Down

0 comments on commit fef8fe9

Please sign in to comment.