Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
openzeppelin-contracts-upgradeable
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
俞永鹏
openzeppelin-contracts-upgradeable
Commits
fdf57a97
Commit
fdf57a97
authored
Jan 27, 2021
by
Francisco Giordano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Lint
parent
5609cd4c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
10 deletions
+6
-10
hardhat.config.js
hardhat.config.js
+5
-5
SafeMath.test.js
test/math/SafeMath.test.js
+1
-1
UpgradeableProxy.behaviour.js
test/proxy/UpgradeableProxy.behaviour.js
+0
-4
No files found.
hardhat.config.js
View file @
fdf57a97
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,14 +13,14 @@ for (const f of fs.readdirSync(path.join(__dirname, 'hardhat'))) {
...
@@ -13,14 +13,14 @@ 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
,
runs
:
200
,
runs
:
200
,
},
},
},
},
networks
:
{
networks
:
{
hardhat
:
{
hardhat
:
{
blockGasLimit
:
10000000
,
blockGasLimit
:
10000000
,
},
},
...
...
test/math/SafeMath.test.js
View file @
fdf57a97
...
@@ -26,7 +26,7 @@ contract('SafeMath', function (accounts) {
...
@@ -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
{
...
...
test/proxy/UpgradeableProxy.behaviour.js
View file @
fdf57a97
...
@@ -5,10 +5,6 @@ const { expect } = require('chai');
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment