You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my project,
in file .env, I have defined
BSC_TESTNET_RPC_URL=XXXXXXX
BSC_ETHERSCAN_KEY=XXXXXXXX
;
in file foundry.toml, I have defined
[rpc_endpoints]
bsctest = "${BSC_TESTNET_RPC_URL}"
[etherscan]
bsctest = { key = "${BSC_ETHERSCAN_KEY}" }
.
Then I run "forge script script/Deploy.s.sol:DeployScript --rpc-url bsctest --broadcast --verify" in the terminal window.
But below error came up:
Error:
At least one of url or chain must be present for Etherscan config bsctest
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
In my project,
in file .env, I have defined
BSC_TESTNET_RPC_URL=XXXXXXX
BSC_ETHERSCAN_KEY=XXXXXXXX
;
in file foundry.toml, I have defined
[rpc_endpoints]
bsctest = "${BSC_TESTNET_RPC_URL}"
[etherscan]
bsctest = { key = "${BSC_ETHERSCAN_KEY}" }
.
Then I run "forge script script/Deploy.s.sol:DeployScript --rpc-url bsctest --broadcast --verify" in the terminal window.
But below error came up:
Error:
At least one of
url
orchain
must be present for Etherscan configbsctest
Beta Was this translation helpful? Give feedback.
All reactions