---
title: "Modifying EVM Storage to Seed Token Balances in Testing"
url: https://daily.dev/posts/modifying-evm-storage-to-seed-token-balances-in-testing-pdknsa2zv
source_url: https://coinsbench.com/modifying-evm-storage-to-seed-token-balances-in-testing-a6d58b596ceb
type: article
source: "Coins Bench"
published: 2024-02-16T15:58:46.907Z
updated: 2024-05-09T09:28:18.744Z
tags: ["testing", "crypto", "blockchain", "ethereum", "smart-contracts", "solidity", "hardhat"]
reading_time: 8
upvotes: 0
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Modifying EVM Storage to Seed Token Balances in Testing

**[Coins Bench](https://daily.dev/sources/coinsbench)** · 8 min read · 0 upvotes · 0 comments

## Summary

This post explores the concept of modifying EVM storage directly with a seeding function in order to simplify testing of smart contracts. It explains how EVM storage works, provides code examples, and demonstrates how to use Hardhat.js to manipulate the local EVM storage. The article also discusses nested mappings and offers a helper function for directly modifying storage. Overall, it offers insights into improving testing processes for smart contracts.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://coinsbench.com/modifying-evm-storage-to-seed-token-balances-in-testing-a6d58b596ceb>

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 0 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments

---

Tags: [#testing](https://daily.dev/tags/testing), [#crypto](https://daily.dev/tags/crypto), [#blockchain](https://daily.dev/tags/blockchain), [#ethereum](https://daily.dev/tags/ethereum), [#smart-contracts](https://daily.dev/tags/smart-contracts), [#solidity](https://daily.dev/tags/solidity), [#hardhat](https://daily.dev/tags/hardhat)

[View this post on daily.dev](https://daily.dev/posts/modifying-evm-storage-to-seed-token-balances-in-testing-pdknsa2zv)
