Fix ganache subprovider config

This commit is contained in:
Leonid Logvinov
2018-05-11 11:59:08 +02:00
parent 1137abfd33
commit c093aab350
3 changed files with 5 additions and 2 deletions

View File

@@ -14,6 +14,7 @@ async callAsync(
const encodedData = ethersFunction.data;
const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync(
{
to: self.address,
data: encodedData,
},
self._web3Wrapper.getContractDefaults(),

View File

@@ -16,6 +16,7 @@ public {{this.tsName}} = {
).data;
const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync(
{
to: self.address,
...txData,
data: encodedData,
},
@@ -40,6 +41,7 @@ public {{this.tsName}} = {
).data;
const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync(
{
to: self.address,
...txData,
data: encodedData,
},

View File

@@ -60,9 +60,9 @@ export const web3Factory = {
provider.addProvider(
new GanacheSubprovider({
logger,
verbose: env.parseBoolean(EnvVars.SolidityCoverage),
verbose: env.parseBoolean(EnvVars.VerboseGanache),
port: 8545,
networkId: 50,
network_id: 50,
mnemonic: 'concert load couple harbor equip island argue ramp clarify fence smart topic',
}),
);