KS note – Telegram
KS note
495 subscribers
61 photos
2 files
71 links
・ Web3 & etc.

🥷⛓️🍷 @MostPow3rful
Download Telegram
3
💻 How to calculate the Address of Contract using WalletAddress and WalletNonce using ethers.js

when a contract is going to be deployed, the address of contract will be generated using 2 argument :
1️⃣ address of deployer's wallet
2️⃣ value of nonce variable
so, you can calculate the address of a contract which is going to be deployed and in other side, you can calculate & find when you can deploy a contract whose address is XXX.

🔗 docs of ethers.js
🔗 github repo of ethers.js
🔥62🍾1
we have contract A which the balance of contract is 10 ether and there is a function in it which call selfdestruct() and we pass an payable address to the function. but, there is no deployed contract on that address. what will be happen to the ethers ?
Anonymous Quiz
18%
the contract will raise an error and the ethers are not going to lose
27%
all of the ethers are going to lose
55%
ethers will be in pending mode and waiting for the contract to be deployed on that address
👏4🔥1
Forwarded from Immunefi
Introducing Immunefi Profiles V1 for the world’s most elite security researchers.🏅

Immunefi Profiles showcase your hard-earned, legendary achievements and badges. 💪

To create your own, log in to the Immunefi Dashboard (https://bugs.immunefi.com)

Profiles can be accessed at the following link structure: https://immunefi.com/profile/lonelysloth/

They are currently available to ANY whitehat with one or more paid reports.
🏆4🍾3
🆒62
🙏2🔥1👌1
security research is a mindset

zigtur 🧠🥷
3🆒1
🔎 How can we make sure that a function exists in our contract

BYTECODE=$(cast code $1)
FUNCTION_SIG=$(cast sig "$2")

if [[ $BYTECODE == *"${FUNCTION_SIG:2}"* ]]; then
echo "[+] Function exists [+]"
else
echo "[-] Function does not exist [-]"
fi
👌8🔥74🆒2
🫡 New Filter Added to immunefi: KYC Not Required - Thanks immunefi team
🎉6🔥2
☁️ --rpc-url VS —-fork-url — Foundry
👌3