Published in


Testing a Smart Contract with HardHat 👷‍♂️

Using HardHat for smart contract development.

Photo by Ümit Yıldırım on Unsplash

HardHat is, alongside Truffle, one of the biggest development tools used for smart contract development. I’ve used Truffle before, but Hardhat not as much, and it’s time for that to change.

In this article, I will explain step by step how to initialize a new smart contract project and how we can use HardHat to test…




Everything connected with Tech & Code. Follow to join our 900K+ monthly readers

Recommended from Medium

A Swift Introduction To VegaLite.jl — StatPlots For Julia

What is a Webhook?

Towards Open Options Chains Part IV: Building a Directed Acyclic Graph

How to implement service discovery with Spring?

Titanic Disasters, Business Continuity, and Kubernetes!

ALCHEMY — why rare attributes matter?

That’s a nice service. Be a shame if it… went missing.

Feature Toggles Give You Superpowers

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store


Always learning👨🏻‍🎓. I occasionally write about programming. Follow me on Twitter @0xmbvissers

More from Medium

How to Build a React Dapp with Hardhat and MetaMask

Using Merkle Trees for Smart Contracts

Deploy Solidity Contracts to an NFT Marketplace With Price Feed

Lesson 3: Reference Types in Solidity