Skip to content

Commit e8c09ce

Browse files
committed
Change truffle and testrpc gasLimit and gasPrice to match current mainnet values
1 parent d8f948d commit e8c09ce

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

scripts/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ start_testrpc() {
3535
--account="0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501210,1000000000000000000000000"
3636
)
3737

38-
node_modules/.bin/testrpc --gasLimit 0xfffffffffff "${accounts[@]}" > /dev/null &
38+
node_modules/.bin/testrpc --gasLimit 8000000 --gasPrice 41000000000 "${accounts[@]}" > /dev/null &
3939

4040
testrpc_pid=$!
4141
}

truffle-config.js

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ module.exports = {
1616
host: 'localhost',
1717
port: 8545,
1818
network_id: '*', // eslint-disable-line camelcase
19+
gas: 8000000,
20+
gasPrice: 41000000000,
1921
},
2022
coverage: {
2123
host: 'localhost',
@@ -24,16 +26,6 @@ module.exports = {
2426
gas: 0xfffffffffff,
2527
gasPrice: 0x01,
2628
},
27-
testrpc: {
28-
host: 'localhost',
29-
port: 8545,
30-
network_id: '*', // eslint-disable-line camelcase
31-
},
32-
ganache: {
33-
host: 'localhost',
34-
port: 7545,
35-
network_id: '*', // eslint-disable-line camelcase
36-
},
3729
},
3830
solc: {
3931
optimizer: {

0 commit comments

Comments
 (0)