From 4205d4f34f561af14006c80d45b9454a7a3fb596 Mon Sep 17 00:00:00 2001 From: Kristijan Sedlak Date: Thu, 2 Dec 2021 09:10:26 +0100 Subject: [PATCH] Fix abi paths --- .gitignore | 1 + README.md | 2 +- hardhat.config.js | 2 +- package-lock.json | 2 +- package.json | 2 +- 5 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 92eb2c1..324ddeb 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ .vscode node_modules dist +abi build # Config files, .idea/ diff --git a/README.md b/README.md index c0998b0..12874e9 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ $ npm run test To interact with this package's contracts within JavaScript code, you simply need to require this package's `.json` files: ```js -const contract = require("@nibbstack/erc721/build/nf-token-enumerable.json"); +const contract = require("@nibbstack/erc721/abi/NFTokenEnumerable.json"); console.log(contract); ``` diff --git a/hardhat.config.js b/hardhat.config.js index 2e4d608..653d3e3 100644 --- a/hardhat.config.js +++ b/hardhat.config.js @@ -18,7 +18,7 @@ module.exports = { tests: './src/tests/*' }, abiExporter: { - path: './data/abi', + path: './abi', clear: true, flat: true, } diff --git a/package-lock.json b/package-lock.json index b4c6c01..9fe98e0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@nibbstack/erc721", - "version": "2.5.1", + "version": "2.6.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 2f4dd8c..f7433f9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@nibbstack/erc721", - "version": "2.5.1", + "version": "2.6.0", "description": "Reference implementation of the ERC-721 non-fungible token standard.", "scripts": { "test": "npx hardhat test",