From b60acb4c33586543c04b2658b7b27fae29008cf2 Mon Sep 17 00:00:00 2001 From: Radek Scheibinger Date: Thu, 22 Feb 2024 00:12:08 +0100 Subject: [PATCH] chore: export ABIs in the compile step (#12083) By default ABIs where not exported in the compile step. Updated the dir path to fetch ABIs from the target location used by prepublish script. Co-authored-by: chainchad <96362174+chainchad@users.noreply.github.com> --- contracts/hardhat.config.ts | 1 + contracts/package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/contracts/hardhat.config.ts b/contracts/hardhat.config.ts index 5306827b8e3..6a0b36ad0c7 100644 --- a/contracts/hardhat.config.ts +++ b/contracts/hardhat.config.ts @@ -35,6 +35,7 @@ subtask(TASK_COMPILE_SOLIDITY_GET_SOURCE_PATHS).setAction( let config = { abiExporter: { path: './abi', + runOnCompile: true, }, paths: { artifacts: './artifacts', diff --git a/contracts/package.json b/contracts/package.json index 654ec1d8958..20717c036bc 100644 --- a/contracts/package.json +++ b/contracts/package.json @@ -22,7 +22,7 @@ }, "files": [ "src/v0.8", - "abi/src/v0.8" + "abi/v0.8" ], "pnpm": { "_comment": "See https://github.com/ethers-io/ethers.js/discussions/2849#discussioncomment-2696454",