Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
killroy192 committed Jul 26, 2024
1 parent ae442f0 commit e52a252
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 19 deletions.
6 changes: 5 additions & 1 deletion src/core/distribution/distributeERC.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ export const distributeERC = async (chain: Chain, tokenAddress: Hex) => {
// axiosInstance: await refreshProxy(0),
chain,
});
await sleep(getRandomArbitrary(2 * 3.6e6, 3 * 3.6e6));
const time = getRandomArbitrary(2 * 3.6e6, 3 * 3.6e6);
logger.info(`sleep for ${time}`, {
label: "core/distributeERC",
});
await sleep(time);
}
};
2 changes: 1 addition & 1 deletion src/libs/erc20/approve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ export async function approve(params: ApproveSpendingParams) {
const receipt = await walletClient.waitForTransactionReceipt({
hash: txHash,
});
logger.debug(`tx receipt: ${receipt}`, { label: "approve" });
logger.info(`tx receipt: ${receipt.transactionHash}`, { label: "erc20/approve" });
return receipt;
}
16 changes: 0 additions & 16 deletions src/libs/erc20/permit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,22 +99,6 @@ export const signPermit = async ({
deadline,
};

logger.debug(
`signature ${JSON.stringify(
{
// account: privateKeyToAccount(wallet.pkᵻ),
message,
domain: domainData,
primaryType: "Permit",
types,
},
(_, v) => (typeof v === "bigint" ? v.toString() : v),
)}`,
{
label: "erc20/permit",
},
);

const signature = await client.signTypedData({
account: privateKeyToAccount(wallet.pkᵻ),
message,
Expand Down
2 changes: 1 addition & 1 deletion src/libs/erc20/transfer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ export async function transfer(params: TransferProps) {
const receipt = await walletClient.waitForTransactionReceipt({
hash: txHash,
});
logger.debug(`tx receipt: ${receipt.transactionHash}`, { label: "approve" });
logger.info(`tx receipt: ${receipt.transactionHash}`, { label: "erc20/transfer" });
return receipt;
}

0 comments on commit e52a252

Please sign in to comment.