Skip to content

Commit 466e94f

Browse files
committed
Update specron readme mentions to hardhat.
1 parent 6a15483 commit 466e94f

File tree

4 files changed

+25
-42
lines changed

4 files changed

+25
-42
lines changed

BUG_BOUNTY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ How to win:
7979

8080
- Be descriptive and detailed when describing your issue
8181
- Fix it — recommend a way to solve the problem
82-
- Include a [Specron test](https://specron.github.io/framework/) case that we can reproduce
82+
- Include a [Hardhat test](https://hardhat.org/) case that we can reproduce
8383

8484
Rules for bounty sponsor:
8585

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# ERC-721 Token — Reference Implementation
44

5-
This is the complete reference implementation of the [ERC-721](https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md) non-fungible token standard for the Ethereum and Wanchain blockchains. This is an open-source project, complete with [Specron](https://specron.github.io/framework/) testing.
5+
This is the complete reference implementation of the [ERC-721](https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md) non-fungible token standard for the Ethereum and Wanchain blockchains. This is an open-source project, complete with [Hardhat](https://hardhat.org/) testing.
66

77
The purpose of this implementation is to provide a good starting point for anyone who wants to use and develop non-fungible tokens on the Ethereum and Wanchain blockchains. Instead of re-implementing the ERC-721 yourself you can use this code which has gone through multiple audits and we hope it will be extensively used by the community in the future.
88

src/tests/utils/address-utils.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
const { expect } = require('chai');
2+
3+
describe('address utils', function() {
4+
let addressUtils, owner;
5+
6+
beforeEach(async () => {
7+
const addressUtilsContract = await ethers.getContractFactory('AddressUtilsMock');
8+
addressUtils = await addressUtilsContract.deploy();
9+
[ owner ] = await ethers.getSigners();
10+
await addressUtils.deployed();
11+
});
12+
13+
it('correctly checks account', async function() {
14+
expect(await addressUtils.isContract(owner.address)).to.equal(false);
15+
});
16+
17+
it('correctly checks smart contract', async function() {
18+
const contract = await ethers.getContractFactory('NFTokenTestMock');
19+
const nfToken = await contract.deploy();
20+
await nfToken.deployed();
21+
expect(await addressUtils.isContract(nfToken.address)).to.equal(true);
22+
});
23+
});

src/tests/utils/address-utils.test.ts

Lines changed: 0 additions & 40 deletions
This file was deleted.

0 commit comments

Comments
 (0)