foundry icon indicating copy to clipboard operation
foundry copied to clipboard

feat(`forge-script`): add `--confirmations` flag to wait for `n` confirmations

Open PatrickAlphaC opened this issue 1 year ago • 2 comments

Component

Forge

Describe the feature you would like

Right now, the forge script verifier gets a little confused if it doesn't find any bytecode, and just exists. An easy solution I use with Brownie, Hardhat, Truffle, and Ape is to just wait X confirmations before attempting a verification.

Having a flag to wait x confirmations would be great.

forge script script/MyScript.sol --wait-confirmations 6

And this will result in:

##
Waiting for receipts.
⠉ [00:00:12] [######################################################################################################################################################################################] 6/6 receipts (0.0s)

Additional context

No response

PatrickAlphaC avatar Apr 15 '23 16:04 PatrickAlphaC