Skip to content

Commit

Permalink
claimInternal var change
Browse files Browse the repository at this point in the history
  • Loading branch information
Leonard-Pat committed Jun 6, 2024
1 parent f8b40cc commit 0990486
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/claim.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,18 +92,15 @@ export async function claimInternal(
factory: Contract,
tokenContract: Contract,
claimSigner: LegacyStarknetKeyPair,
receiverAddress = "0x42",
forcedGiftPrivateKey = false,
forcedGiftPrivateKey = "0x42",
useTxV3 = false,
giftAmount = GIFT_AMOUNT,
giftMaxFee = GIFT_MAX_FEE,
): Promise<{
claimAccount: Account;
receiver: string;
}> {
const receiver = forcedGiftPrivateKey
? receiverAddress
: `0x${encode.buf2hex(ec.starkCurve.utils.randomPrivateKey())}`;
const receiver = forcedGiftPrivateKey || `0x${encode.buf2hex(ec.starkCurve.utils.randomPrivateKey())}`;
const claimAccountClassHash = await manager.declareLocalContract("ClaimAccount");
const claimAddress = await factory.get_claim_address(
claimAccountClassHash,
Expand Down

0 comments on commit 0990486

Please sign in to comment.