Rename Signer to Wallet, rename GAS_ESTIMATE to GAS_LIMIT
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
export const constants = {
|
||||
RPC_URL: 'http://localhost:8545',
|
||||
RPC_PORT: 8545,
|
||||
GAS_ESTIMATE: 8000000,
|
||||
GAS_LIMIT: 7000000,
|
||||
TESTRPC_FIRST_ADDRESS: '0x5409ed021d9299bf6814279a6a1411a7e866a631',
|
||||
};
|
||||
|
@@ -28,7 +28,7 @@ export const web3Factory = {
|
||||
if (!hasAddresses) {
|
||||
provider.addProvider(new EmptyWalletSubprovider());
|
||||
}
|
||||
provider.addProvider(new FakeGasEstimateSubprovider(constants.GAS_ESTIMATE));
|
||||
provider.addProvider(new FakeGasEstimateSubprovider(constants.GAS_LIMIT));
|
||||
const logger = {
|
||||
log: (arg: any) => {
|
||||
fs.appendFileSync('ganache.log', `${arg}\n`);
|
||||
@@ -41,7 +41,7 @@ export const web3Factory = {
|
||||
}
|
||||
provider.addProvider(
|
||||
new GanacheSubprovider({
|
||||
gasLimit: constants.GAS_ESTIMATE,
|
||||
gasLimit: constants.GAS_LIMIT,
|
||||
logger,
|
||||
verbose: env.parseBoolean(EnvVars.VerboseGanache),
|
||||
port: 8545,
|
||||
|
Reference in New Issue
Block a user