Skip to content

POC for a Hardhat project!! #57

Answered by johnsonstephan
0xnayan asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @0xnayan, you raise an important question! This tends to be a puzzling area for some auditors.

TL;DR: The answer is yes, you can.

Let’s get into more detail

In a competitive audit, if a protocol uses Hardhat with JavaScript tests, you may in fact submit a PoC using Foundry.

For example, this approach was successfully taken in the competitive audit for ENS on Code4rena (C4).

  • In the C4 ENS audit report, a PoC for finding M-01 was submitted and credited using Foundry -- even though ENS uses Hardhat, as noted in their C4 ENS repo.
  • The audit report even highlights a "practical step" of converting the Hardhat tests into a Foundry environment in Section 2.2.

Tip

However, it's important to r…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@0xnayan
Comment options

@johnsonstephan
Comment options

Answer selected by 0xnayan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants