Skip to content

Commit ef83a68

Browse files
committed
config optimizer for truffle to deploy on dev chain
1 parent 87ed407 commit ef83a68

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

.dockerignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package-lock.json

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ ADD . /smart-contracts
2121

2222
WORKDIR /smart-contracts
2323

24-
RUN npm install -g truffle
24+
RUN npm install -g truffle@4.0.1
2525
RUN npm install bignumber.js

scripts/deployment.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ var counterConversionRate = (((new BigNumber(10)).pow(18)).div(2));
3434

3535
var expBlock = 10**10;
3636
var validBlockDuration = 24;
37-
const maxGas = 5878178;
37+
const maxGas = 4612388;
3838

3939
var tokenOwner;
4040

truffle.js

+6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
module.exports = {
2+
solc: {
3+
optimizer: {
4+
enabled: true,
5+
runs: 200
6+
}
7+
},
28
networks: {
39
development: {
410
host: "localhost",

0 commit comments

Comments
 (0)