---
title: "Discussion on \"Solving the TypeError: no matching function Error in Hardhat\" | Hashnode"
description: "Discussion on \"Solving the TypeError: no matching function Error in Hardhat\". It's a bug-fix day. I encountered an error while attempting to deploy my contract to the testnet using Hardhat with the command below.\nnpx hardhat run scripts/deploy.js --network <testnet>\n\nAfter spending a couple of hours debugging, I realized that ..."
url: "https://hashnode.com/posts/typeerror-no-matching-function-argumentkey-valueaddress-codeinvalidargument-version662/64ad5a224c3ba624792e0e3a"
---

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

Discussion

# [Solving the TypeError: no matching function Error in Hardhat](https://blog.idrisolubisi.com/typeerror-no-matching-function-argumentkey-valueaddress-codeinvalidargument-version662?utm_source=hashnode&utm_medium=feed)

It's a bug-fix day. I encountered an error while attempting to deploy my contract to the testnet using Hardhat with the command below. npx hardhat run scripts/deploy.js --network <testnet> After spending a couple of hours debugging, I realized that ...

Jul 11, 2023 · 2 min read · blog.idrisolubisi.com  
Read the article

-   [#hardhat](https://hashnode.com/tag/hardhat)
-   [#solidity](https://hashnode.com/tag/solidity)
-   [#smart-contracts](https://hashnode.com/tag/smart-contracts)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#web3](https://hashnode.com/tag/web3)

## Written by

[Idris Olubisi](https://hashnode.com/@olanetsoft)

@olanetsoft · Lagos, Nigeria.

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

Developer Relation Engineer | Software Engineer | Technical Writer

Software Engineer | Developer Advocate | Technical Writer | Content Creator

## Responses 1

Markdown supported · ⌘↵ to post

[Irom Ibe](https://hashnode.com/@Asanibe)

[Jul 11, 2023](https://hashnode.com/posts/typeerror-no-matching-function-argumentkey-valueaddress-codeinvalidargument-version662/64ad5a224c3ba624792e0e3a/comment/64ad6bd8241a6654f37fd233)

Same error I've been battling with since week! Really wished i found this earlier. Thanks a bunch for this I really really appreciate all this

[Idris Olubisi](https://hashnode.com/@olanetsoft)

[Jul 11, 2023](https://hashnode.com/posts/typeerror-no-matching-function-argumentkey-valueaddress-codeinvalidargument-version662/64ad5a224c3ba624792e0e3a/comment/64ad6bd8241a6654f37fd233#reply-64ad7411241a6654f37fd390)

Thank you for the feedback [Irom Ibe](https://hashnode.com/@Asanibe)

I'm glad you find it useful!
