a value is required for '--fork-url <URL>' but none was supplied
Psik628 opened this issue · comments
Jan Cahlík commented
When I ran this code from terminal I got this error.
Can someone please help? Thanks!
forge script script/Interactions.s.sol:FundSubscription --rpc-url $SEPOLIA_RPC_URL --private-key $PRIVATE_KEY --broadcast
the error message:
a value is required for '--fork-url <URL>' but none was supplied
blagoichelovek commented
Check your .env again, myabe there you will find an error
Shruti commented
if you ever see this error, it means you are using a variable in your command. Your .env should always have the variables and their values that you are using in the command.
please run the following and it should work
source .env
forge script script/Interactions.s.sol:FundSubscription --rpc-url $SEPOLIA_RPC_URL --private-key $PRIVATE_KEY --broadcast
Parth Sharma (Tonchi) commented
If you use source .env
in your command line. you won't get this error again. Check echo $SEPOLIA_RPC_URL
on the command line and it will get a RPC URL.
Patrick Collins commented
Great fixes all!
Parth Sharma (Tonchi) commented
I appreciate your work. You are amazing because you come back for your
students.
…On Thu, 15 Feb 2024 at 07:15, Patrick Collins ***@***.***> wrote:
Great fixes all!
—
Reply to this email directly, view it on GitHub
<#18 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A4OUJNBF6P2KZGVENYWIYELYTVSETAVCNFSM6AAAAAA2OQLB5SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBVGIZTEOJXHE>
.
You are receiving this because you commented.Message ID:
***@***.***
com>