book
book copied to clipboard
bug: `forge create`'s `<CONTRACT>` position error
Follwing the docs if I do
forge create --rpc-url $RPC_URL --private-key $EVM_PRIVATE_KEY --constructor-args "0x999117D44220F33e0441fbAb2A5aDB8FF485c54D" "0xbE406F0189A0B4cf3A05C286473D23791Dd44Cc6" \
> src/Prover-Axelar.sol
or
forge create --rpc-url $RPC_URL --private-key $EVM_PRIVATE_KEY --constructor-args "0x999117D44220F33e0441fbAb2A5aDB8FF485c54D" "0xbE406F0189A0B4cf3A05C286473D23791Dd44Cc6" src/Prover-Axelar.sol:DealClient DealClient
it throws error
error: the following required arguments were not provided:
<CONTRACT>
But it works when I do
forge create src/Prover-Axelar.sol:DealClient --rpc-url $RPC_URL --private-key $EVM_PRIVATE_KEY --constructor-args "0x999117D44220F33e0441fbAb2A5aDB8FF485c54D" "0xbE406F0189A0B4cf3A05C286473D23791Dd44Cc6"
Is this something with my system? Or maybe we should update command here https://book.getfoundry.sh/forge/deploying#deploying