Configure the compiler to generate artifacts with deployedBytecode

This commit is contained in:
Leonid Logvinov 2018-05-09 23:14:44 +02:00
parent 20f6d8d3d0
commit c7a147f49d
No known key found for this signature in database
GPG Key ID: 0DD294BFDE8C95D4
2 changed files with 19 additions and 1 deletions

View File

@ -0,0 +1,18 @@
{
"contracts": ["SimpleStorage"],
"contractsDir": "test/fixtures/contracts",
"artifactsDir": "test/fixtures/artifacts",
"compilerSettings": {
"outputSelection": {
"*": {
"*": [
"abi",
"evm.bytecode.object",
"evm.bytecode.sourceMap",
"evm.deployedBytecode.object",
"evm.deployedBytecode.sourceMap"
]
}
}
}
}

View File

@ -14,7 +14,7 @@
"run_mocha": "mocha lib/test/**/*_test.js --exit",
"clean": "shx rm -rf lib scripts",
"build": "copyfiles 'test/fixtures/**/*' ./lib && tsc && copyfiles -u 3 './lib/src/monorepo_scripts/**/*' ./scripts",
"compile_test": "node ../deployer/lib/src/cli.js compile --contracts SimpleStorage --contracts-dir test/fixtures/contracts --artifacts-dir test/fixtures/artifacts",
"compile_test": "node ../deployer/lib/src/cli.js compile",
"manual:postpublish": "yarn build; node ./scripts/postpublish.js",
"docs:stage": "yarn build && node ./scripts/stage_docs.js",
"docs:json": "typedoc --excludePrivate --excludeExternals --target ES5 --json $JSON_FILE_PATH $PROJECT_FILES",