Lint
This commit is contained in:
@ -1,9 +1,9 @@
|
|||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
|
||||||
require("@nomiclabs/hardhat-truffle5");
|
require('@nomiclabs/hardhat-truffle5');
|
||||||
require("@nomiclabs/hardhat-solhint");
|
require('@nomiclabs/hardhat-solhint');
|
||||||
require("solidity-coverage");
|
require('solidity-coverage');
|
||||||
|
|
||||||
for (const f of fs.readdirSync(path.join(__dirname, 'hardhat'))) {
|
for (const f of fs.readdirSync(path.join(__dirname, 'hardhat'))) {
|
||||||
require(path.join(__dirname, 'hardhat', f));
|
require(path.join(__dirname, 'hardhat', f));
|
||||||
@ -13,7 +13,7 @@ for (const f of fs.readdirSync(path.join(__dirname, 'hardhat'))) {
|
|||||||
* @type import('hardhat/config').HardhatUserConfig
|
* @type import('hardhat/config').HardhatUserConfig
|
||||||
*/
|
*/
|
||||||
module.exports = {
|
module.exports = {
|
||||||
solidity: "0.8.0",
|
solidity: '0.8.0',
|
||||||
settings: {
|
settings: {
|
||||||
optimizer: {
|
optimizer: {
|
||||||
enabled: false,
|
enabled: false,
|
||||||
|
|||||||
@ -26,7 +26,7 @@ contract('SafeMath', function (accounts) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function testFailsCommutative (fn, lhs, rhs, reason, ...extra) {
|
async function testFailsCommutative (fn, lhs, rhs, reason, ...extra) {
|
||||||
if (reason == undefined) {
|
if (reason === undefined) {
|
||||||
await expectRevert.unspecified(fn(lhs, rhs, ...extra));
|
await expectRevert.unspecified(fn(lhs, rhs, ...extra));
|
||||||
await expectRevert.unspecified(fn(rhs, lhs, ...extra));
|
await expectRevert.unspecified(fn(rhs, lhs, ...extra));
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@ -5,10 +5,6 @@ const { expect } = require('chai');
|
|||||||
|
|
||||||
const DummyImplementation = artifacts.require('DummyImplementation');
|
const DummyImplementation = artifacts.require('DummyImplementation');
|
||||||
|
|
||||||
function toChecksumAddress (address) {
|
|
||||||
return ethereumjsUtil.toChecksumAddress('0x' + address.replace(/^0x/, '').padStart(40, '0').substr(-40));
|
|
||||||
}
|
|
||||||
|
|
||||||
const IMPLEMENTATION_LABEL = 'eip1967.proxy.implementation';
|
const IMPLEMENTATION_LABEL = 'eip1967.proxy.implementation';
|
||||||
|
|
||||||
function toChecksumAddress (address) {
|
function toChecksumAddress (address) {
|
||||||
|
|||||||
Reference in New Issue
Block a user