-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(website): Foundry reference forge verify contract Blockscout URL…
… bug fix (#14266) Co-authored-by: d1onys1us <[email protected]>
- Loading branch information
1 parent
ab97d2e
commit 0da6399
Showing
1 changed file
with
22 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,8 +75,27 @@ This guide will help get your contract verified on a Taiko testnet! | |
Follow Blockscout's [official guide](https://docs.blockscout.com/for-users/verifying-a-smart-contract) to verify your contract on Taiko's blockscout explorers. | ||
</Tab> | ||
<Tab> | ||
<Callout type="warning"> | ||
Foundry's `verify-contract` command is currently broken with Blockscout (see why [here](https://github.com/foundry-rs/foundry/issues/4909)). Please check the Hardhat or Blockscout steps to verify your contract. | ||
</Callout> | ||
Copy the following Foundry test repo https://github.com/MarcusWentz/foundry-testing using git clone SSH | ||
```sh | ||
git clone [email protected]:MarcusWentz/foundry-testing.git | ||
``` | ||
Deploy to Taiko Grimsvotn L2 network and verify at the same time on Blockscout (with EIP-1559 gas [transaction type 1]) | ||
```sh | ||
forge create --rpc-url https://rpc.test.taiko.xyz --private-key $devTestnetPrivateKey src/Contract.sol:SimpleStorage --verify --verifier blockscout --verifier-url https://explorer.test.taiko.xyz/api\? | ||
``` | ||
Deploy to Taiko Eldfell L3 network and verify at the same time on Blockscout (with EIP-1559 gas [transaction type 1]) | ||
```sh | ||
forge create --rpc-url https://rpc.l3test.taiko.xyz --private-key $devTestnetPrivateKey src/Contract.sol:SimpleStorage --verify --verifier blockscout --verifier-url https://blockscoutapi.l3test.taiko.xyz/api\? | ||
``` | ||
<Callout type="info"> | ||
To use Legacy gas for [transaction type 0], add the | ||
```sh | ||
--legacy | ||
``` | ||
flag with forge create. Example: | ||
``` | ||
forge create --legacy --rpc-url https://rpc.test.taiko.xyz --private-key $devTestnetPrivateKey src/Contract.sol:SimpleStorage --verify --verifier blockscout --verifier-url https://explorer.test.taiko.xyz/api\? | ||
``` | ||
</Callout> | ||
</Tab> | ||
</Tabs> |