mirror of
https://github.com/embarklabs/embark.git
synced 2025-02-02 00:45:55 +00:00
fix(@embark/test): increase default gas limit to 8M so tests support bigger contracts
Was needed for the Teller Dapp as its Escrow contract is too big for the other default
This commit is contained in:
parent
b8f93ea2ad
commit
b6856b2083
@ -70,8 +70,7 @@ class EthereumBlockchainClient {
|
||||
}
|
||||
|
||||
if (!contract.gasPrice) {
|
||||
const gasPrice = await web3.eth.getGasPrice();
|
||||
contract.gasPrice = contract.gasPrice || gasPrice;
|
||||
contract.gasPrice = await web3.eth.getGasPrice();
|
||||
}
|
||||
|
||||
embarkJsUtils.secureSend(web3, contractObject, {
|
||||
|
@ -2,7 +2,9 @@ class Ganache {
|
||||
constructor(embark) {
|
||||
embark.events.request('blockchain:vm:register', () => {
|
||||
const ganache = require('ganache-cli');
|
||||
return ganache.provider();
|
||||
// Default to 8000000, which is the server default
|
||||
// Somehow, the provider default is 6721975
|
||||
return ganache.provider({gasLimit: '0x7A1200'});
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -7,7 +7,7 @@ const Web3 = require('web3');
|
||||
|
||||
const Reporter = require('./reporter');
|
||||
|
||||
const GAS_LIMIT = 6000000;
|
||||
const GAS_LIMIT = 8000000;
|
||||
const JAVASCRIPT_TEST_MATCH = /^.+\.js$/i;
|
||||
const TEST_TIMEOUT = 15000; // 15 seconds in milliseconds
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user