Skip to content

Commit

Permalink
wagmi generate - make faster by using dev profile (#290)
Browse files Browse the repository at this point in the history
When running wagmi to generate, build forge using the `dev` profile which builds it in `fast` mode (no optimizations)
  • Loading branch information
oveddan authored Oct 25, 2023
1 parent b0e86d5 commit f6b6ae6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/1155-contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"build": "tsup",
"build:sizes": "forge build --sizes",
"bundle-configs": "node script/bundle-chainConfigs.mjs && yarn prettier",
"wagmi": "wagmi generate",
"wagmi": "FOUNDRY_PROFILE=dev forge build && wagmi generate",
"storage-inspect:check": "./script/storage-check.sh check ZoraCreator1155Impl ZoraCreator1155FactoryImpl",
"storage-inspect:generate": "./script/storage-check.sh generate ZoraCreator1155Impl ZoraCreator1155FactoryImpl",
"js-test:watch": "vitest dev",
Expand Down
3 changes: 3 additions & 0 deletions packages/1155-contracts/wagmi.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ export default defineConfig({
plugins: [
foundry({
deployments: getAddresses(),
forge: {
build: false,
},
include: contractFilesToInclude.map(
(contractName) => `${contractName}.json`
),
Expand Down

0 comments on commit f6b6ae6

Please sign in to comment.