Skip to content

Commit

Permalink
feat(cli): blockscout is default verifier (#2775)
Browse files Browse the repository at this point in the history
Co-authored-by: Kevin Ingersoll <[email protected]>
  • Loading branch information
yonadaa and holic authored Apr 30, 2024
1 parent 6b247fb commit 0b6b70f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/great-brooms-knock.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@latticexyz/cli": patch
---

`mud verify` now defaults to blockscout if no `--verifier` is provided.
2 changes: 1 addition & 1 deletion docs/pages/cli/verify.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Otherwise, the generated bytecode is different and therefore verification fails.
| ---------------- | ------------------------------------------------------ | ------- | ---------------------------- |
| `--worldAddress` | Verify the contracts of the World at the given address | string | none, error if unspecified |
| `--configPath` | Path to the config file | string | `mud.config.ts` |
| `--verifier` | The verifier to use (`sourcify`, or `blockscout`) | string | `sourcify` |
| `--verifier` | The verifier to use (`sourcify`, or `blockscout`) | string | `blockscout` |
| `--verifierUrl` | URL to use to access the verifier's API | string | depends on the verifier used |
| `--profile` | The foundry profile to use | string | `local` |
| `--rpc` | URL to the blockchain | string | |
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/commands/verify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const verifyOptions = {
desc: "Enable batch processing of RPC requests in viem client (defaults to batch size of 100 and wait of 1s)",
},
srcDir: { type: "string", desc: "Source directory. Defaults to foundry src directory." },
verifier: { type: "string", desc: "The verifier to use. Default to sourcify", default: "sourcify" },
verifier: { type: "string", desc: "The verifier to use. Defaults to blockscout", default: "blockscout" },
verifierUrl: {
type: "string",
desc: "The verification provider.",
Expand Down

0 comments on commit 0b6b70f

Please sign in to comment.