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
19038bb4
Commit
19038bb4
authored
Aug 06, 2021
by
github-actions
Browse files
Options
Browse Files
Download
Plain Diff
Merge upstream openzeppelin-contracts into upstream-patched
parents
9b6c3989
d89f2a4a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
5 deletions
+24
-5
hardhat.config.js
hardhat.config.js
+23
-4
ERC721.behavior.js
test/token/ERC721/ERC721.behavior.js
+1
-1
No files found.
hardhat.config.js
View file @
19038bb4
...
@@ -7,9 +7,28 @@ const fs = require('fs');
...
@@ -7,9 +7,28 @@ const fs = require('fs');
const
path
=
require
(
'path'
);
const
path
=
require
(
'path'
);
const
argv
=
require
(
'yargs/yargs'
)()
const
argv
=
require
(
'yargs/yargs'
)()
.
env
(
''
)
.
env
(
''
)
.
boolean
(
'enableGasReport'
)
.
options
({
.
boolean
(
'ci'
)
ci
:
{
.
string
(
'compileMode'
)
type
:
'boolean'
,
default
:
false
,
},
gas
:
{
alias
:
'enableGasReport'
,
type
:
'boolean'
,
default
:
false
,
},
mode
:
{
alias
:
'compileMode'
,
type
:
'string'
,
choices
:
[
'production'
,
'development'
],
default
:
'development'
,
},
compiler
:
{
alias
:
'compileVersion'
,
type
:
'string'
,
default
:
'0.8.3'
,
},
})
.
argv
;
.
argv
;
require
(
'@nomiclabs/hardhat-truffle5'
);
require
(
'@nomiclabs/hardhat-truffle5'
);
...
@@ -30,7 +49,7 @@ const withOptimizations = argv.enableGasReport || argv.compileMode === 'producti
...
@@ -30,7 +49,7 @@ const withOptimizations = argv.enableGasReport || argv.compileMode === 'producti
*/
*/
module
.
exports
=
{
module
.
exports
=
{
solidity
:
{
solidity
:
{
version
:
'0.8.3'
,
version
:
argv
.
compiler
,
settings
:
{
settings
:
{
optimizer
:
{
optimizer
:
{
enabled
:
withOptimizations
,
enabled
:
withOptimizations
,
...
...
test/token/ERC721/ERC721.behavior.js
View file @
19038bb4
...
@@ -678,7 +678,7 @@ function shouldBehaveLikeERC721 (errorPrefix, owner, newOwner, approved, another
...
@@ -678,7 +678,7 @@ function shouldBehaveLikeERC721 (errorPrefix, owner, newOwner, approved, another
describe
(
'_burn'
,
function
()
{
describe
(
'_burn'
,
function
()
{
it
(
'reverts when burning a non-existent token id'
,
async
function
()
{
it
(
'reverts when burning a non-existent token id'
,
async
function
()
{
await
expectRevert
(
await
expectRevert
(
this
.
token
.
burn
(
firs
tTokenId
),
'ERC721: owner query for nonexistent token'
,
this
.
token
.
burn
(
nonExisten
tTokenId
),
'ERC721: owner query for nonexistent token'
,
);
);
});
});
...
...
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