---
title: "Chirag Patil (@0xcsp) | Hashnode"
description: "Smart contract developer & web3 writer. Read the latest articles by Chirag Patil on Hashnode."
url: "https://hashnode.com/@0xcsp"
---

@0xcsp

# Chirag Patil

@0xcsp · India · Joined November 2022

Smart contract developer & web3 writer

### [Ethernaut Level 13  Gatekeeper One \[Foundry-Hardhat\]](https://0xcsp.hashnode.dev/ethernaut-level-13-gatekeeper-one-foundry-hardhat?utm_source=hashnode&utm_medium=feed)

We have to get past all three gates (modifiers) by passing \_gateKey to the enter function to become the entrant. We have to find out the \_gateKey value...

9 min read · [0xcsp.hashnode.dev](https://0xcsp.hashnode.dev/ethernaut-level-13-gatekeeper-one-foundry-hardhat?utm_source=hashnode&utm_medium=feed)

[Apr 9, 2023](https://hashnode.com/posts/ethernaut-level-13-gatekeeper-one-foundry-hardhat/6432d7912ff7d7a73a52a58c)

### [Ethernaut Level 12  Privacy \[Foundry-Hardhat\]](https://0xcsp.hashnode.dev/ethernaut-level-12-privacy-foundry-hardhat?utm_source=hashnode&utm_medium=feed)

Making a variable private implies that it can only be accessed in the contract in which it is declared; it does not hide the variable, and the variable’s

4 min read · [0xcsp.hashnode.dev](https://0xcsp.hashnode.dev/ethernaut-level-12-privacy-foundry-hardhat?utm_source=hashnode&utm_medium=feed)

[Jan 13, 2023](https://hashnode.com/posts/ethernaut-level-12-privacy-foundry-hardhat/63c12ebe85fdebf908f5f268)

### [Ethernaut Level 11 Elevator \[Foundry-Hardhat\]](https://0xcsp.hashnode.dev/ethernaut-level-11-elevator-foundry-hardhat?utm_source=hashnode&utm_medium=feed)

We need to set the top to true to clear the level. top will set to true if building.isLastFloor(floor) returns true. The Building interface is instantiated

3 min read · [0xcsp.hashnode.dev](https://0xcsp.hashnode.dev/ethernaut-level-11-elevator-foundry-hardhat?utm_source=hashnode&utm_medium=feed)

[Jan 9, 2023](https://hashnode.com/posts/ethernaut-level-11-elevator-foundry-hardhat/63bc04f9caae487be2ad7c42)

### [Ethernaut Level 10 Reentrancy \[Foundry-Hardhat\]](https://0xcsp.hashnode.dev/ethernaut-level-10-reentrancy-foundry-hardhat?utm_source=hashnode&utm_medium=feed)

Whenever Ether is sent to a smart contract either receive() for payable fallback() function is called. Any interaction between contract A and contract B and

5 min read · [0xcsp.hashnode.dev](https://0xcsp.hashnode.dev/ethernaut-level-10-reentrancy-foundry-hardhat?utm_source=hashnode&utm_medium=feed)

[Jan 5, 2023](https://hashnode.com/posts/ethernaut-level-10-reentrancy-foundry-hardhat/63b6aa4b7da39051c8bc4a5b)

### [Ethernaut Level 9 King \[Foundry-Hardhat\]](https://0xcsp.hashnode.dev/ethernaut-level-9-king-foundry-hardhat?utm_source=hashnode&utm_medium=feed)

In level 1, we discussed fallback() and receive() functions. Each time we send ether to another contract, the transaction’s success depends on that contract

3 min read · [0xcsp.hashnode.dev](https://0xcsp.hashnode.dev/ethernaut-level-9-king-foundry-hardhat?utm_source=hashnode&utm_medium=feed)

[Dec 28, 2022](https://hashnode.com/posts/ethernaut-level-9-king-foundry-hardhat/63ac23bbb31f0e129610236f)
