From 09904867058563c051cbf820c6346cb4a684fca1 Mon Sep 17 00:00:00 2001 From: Leonard Paturel Date: Thu, 6 Jun 2024 16:07:51 +0100 Subject: [PATCH] claimInternal var change --- lib/claim.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/claim.ts b/lib/claim.ts index fa18cf0..0e74d24 100644 --- a/lib/claim.ts +++ b/lib/claim.ts @@ -92,8 +92,7 @@ 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, @@ -101,9 +100,7 @@ export async function claimInternal( 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,