I have a problem deploying my contract

This error-message tells you that you are passing 2 input arguments instead of 0.

And indeed, you are passing 2 input arguments:

The 2nd argument is { value: lockedAmount }.
Hardhat knows how to pass it as the transaction's ETH value instead of a regular function argument.

But that still leaves 1 redundant argument, namely unlockTime, which you should avoid passing.

1 Like