foundry-rs / book

A book on all things Foundry, available at https://book.getfoundry.sh.
https://book.getfoundry.sh
Apache License 2.0
776 stars 609 forks source link

bug: `forge create`'s `<CONTRACT>` position error #1244

Open lordshashank opened 1 month ago

lordshashank commented 1 month ago

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