Skip to content

Commit

Permalink
modified: imports-exercise.md (#276)
Browse files Browse the repository at this point in the history
Included a custom-styled block of text to inform @dev about contract verification best practices

Co-authored-by: Gnarizard <[email protected]>
  • Loading branch information
GNAR1ZARD and Gnarizard authored Jan 25, 2024
1 parent 62d4560 commit 8cce918
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions apps/base-docs/base-camp/docs/imports/imports-exercise.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,18 @@ Remember, the compiler will automatically create a getter for `public` `struct`s

## Submit your Contract and Earn an NFT Badge! (BETA)

:::caution

#### Contract Verification Best Practices

To simplify the verification of your contract on a blockchain explorer like BaseScan.org, consider these two common strategies:

1. **Flattening**: This method involves combining your main contract and all of its imported dependencies into a single file. This makes it easier for explorers to verify the code since they only have to process one file.

2. **Modular Deployment**: Alternatively, you can deploy each imported contract separately and then reference them in your main contract via their deployed addresses. This approach maintains the modularity and readability of your code. Each contract is deployed and verified independently, which can facilitate easier updates and reusability.

:::

:::info

#### Hey, where'd my NFT go!?
Expand Down

0 comments on commit 8cce918

Please sign in to comment.