From a50a543f6b66981b8fd36e2895312bb42364198f Mon Sep 17 00:00:00 2001 From: Aaron DeRuvo Date: Wed, 6 Dec 2023 13:42:22 +0200 Subject: [PATCH] generate ts files at top level --- .../protocol/scripts/prepare-contracts-and-abis-publishing.ts | 2 +- packages/protocol/wagmi.config.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/protocol/scripts/prepare-contracts-and-abis-publishing.ts b/packages/protocol/scripts/prepare-contracts-and-abis-publishing.ts index d8c52194d9..38c0629574 100644 --- a/packages/protocol/scripts/prepare-contracts-and-abis-publishing.ts +++ b/packages/protocol/scripts/prepare-contracts-and-abis-publishing.ts @@ -60,7 +60,7 @@ try { let exports = processRawJsonsAndPrepareExports() - // Generate wagmi friendly ts files + // Generate ts abi files log('Running yarn wagmi generate') child_process.execSync(`yarn wagmi generate`, { stdio: 'inherit' }) diff --git a/packages/protocol/wagmi.config.ts b/packages/protocol/wagmi.config.ts index e6a2d0ad89..8c33b65fb7 100644 --- a/packages/protocol/wagmi.config.ts +++ b/packages/protocol/wagmi.config.ts @@ -19,7 +19,7 @@ for (const contractName of new Set(CoreContracts)) { export default defineConfig( contracts.map(({ name, abi }) => ({ - out: path.join(ABIS_BUILD_DIR, `wagmi/${name}.ts`), + out: path.join(ABIS_BUILD_DIR, `${name}.ts`), contracts: [{ name, abi }], plugins: [], }))