codeesura/arbitrum-claim-send

Hardcoded addresses

Closed this issue · 1 comments

Hello and thanks for sharing your code.

Looking at your code, I see a lot of hardcoded addresses, it makes me wonder about the integrity of your project.
Are you sending the claimed tokens to your address?

It does look that way, but Im not that experienced with blockchain, ARB and smart contracts yet, so please just take this as a question for more information. I do have a lot of experience in programming, I am just being careful.

Thanks in advance for your response

First of all, thank you and yes you're right. After the ARB claim, the wallet address to be sent was stored as my own wallet address, and I assigned this address to a variable called "recipientAddress," assuming that the person using it would change it. You're right, I should have corrected this. The other addresses are present in the "contractAddress" variable, which holds the ARB claim contract address, and in the "getBlockAddress" section, the contract address that communicates with L1 and retrieves the latest block data. The purpose of the code is to enable individuals whose wallets have been hacked or stolen to claim the ARB airdrop and transfer it to their secure wallets.

Fix this : 3e76c75