Commit 19038bb4 by github-actions

Merge upstream openzeppelin-contracts into upstream-patched

parents 9b6c3989 d89f2a4a
......@@ -7,9 +7,28 @@ const fs = require('fs');
const path = require('path');
const argv = require('yargs/yargs')()
.env('')
.boolean('enableGasReport')
.boolean('ci')
.string('compileMode')
.options({
ci: {
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;
require('@nomiclabs/hardhat-truffle5');
......@@ -30,7 +49,7 @@ const withOptimizations = argv.enableGasReport || argv.compileMode === 'producti
*/
module.exports = {
solidity: {
version: '0.8.3',
version: argv.compiler,
settings: {
optimizer: {
enabled: withOptimizations,
......
......@@ -678,7 +678,7 @@ function shouldBehaveLikeERC721 (errorPrefix, owner, newOwner, approved, another
describe('_burn', function () {
it('reverts when burning a non-existent token id', async function () {
await expectRevert(
this.token.burn(firstTokenId), 'ERC721: owner query for nonexistent token',
this.token.burn(nonExistentTokenId), 'ERC721: owner query for nonexistent token',
);
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment