---
title: "Discussion on \"Setting Storage Slots in Hardhat\" | Hashnode"
description: "Discussion on \"Setting Storage Slots in Hardhat\". Hardhat provides a \"hardhat_setStorageAt\" method call on its network. This allows one to set the value of any storage slot in a Hardhat network. Since Hardhat supports mainnet forking, we can now tweak the slots in the mainnet fork. As a use case, it..."
url: "https://hashnode.com/posts/setting-storage-slots-in-hardhat/6415756b225b32e381c802d4"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Setting Storage Slots in Hardhat](https://maanas.hashnode.dev/setting-storage-slots-in-hardhat?utm_source=hashnode&utm_medium=feed)

Hardhat provides a "hardhat\_setStorageAt" method call on its network. This allows one to set the value of any storage slot in a Hardhat network. Since Hardhat supports mainnet forking, we can now tweak the slots in the mainnet fork. As a use case, it...

Mar 18, 2023 · 4 min read · maanas.hashnode.dev  
Read the article

-   [#hardhat](https://hashnode.com/tag/hardhat)
-   [#solidity](https://hashnode.com/tag/solidity)
-   [#blockchain](https://hashnode.com/tag/blockchain)
-   [#ethereum](https://hashnode.com/tag/ethereum)

## Written by

[Maanas O T](https://hashnode.com/@blogmaanas)

@blogmaanas

  
[View profile](https://hashnode.com/@blogmaanas)

Intern @ Piggi.ai / Dexponent

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
