bnb-chain / opbnb

MIT License
403 stars 163 forks source link

verifying contract through foundry fails #31

Closed MuesliW closed 1 year ago

MuesliW commented 1 year ago

example of foundry.toml

I reference this documentation (https://docs.bnbchain.org/opbnb-docs/docs/tutorials/opbnbscan-verify-hardhat-truffle) and try to verify contract through foundry:

[etherscan]
opBNB = { key = "${ETHERSCAN_API_KEY}", chain=5611, url="https://open-platform.nodereal.io/${NODEREAL_KEY}/op-bnb-testnet/contract/" }

Message

Error: 
expected value at line 1 column 1

The contract is pushed and deployed on the network however it is not verified on the opBNBscan

CLI: forge create

CocoStarZ commented 1 year ago

Suggest you verify contract using hardhat as explained in doc