aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-05-11 17:59:08 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-05-11 17:59:08 +0800
commitc093aab350dfbd86972d6388c3923ec60fc4501a (patch)
treed5ce20f09143eda46a62cd3d610bfccff00c0b82
parent1137abfd33f8f5a4deb9f55b21f45afd1b3d0b42 (diff)
downloaddexon-0x-contracts-c093aab350dfbd86972d6388c3923ec60fc4501a.tar.gz
dexon-0x-contracts-c093aab350dfbd86972d6388c3923ec60fc4501a.tar.zst
dexon-0x-contracts-c093aab350dfbd86972d6388c3923ec60fc4501a.zip
Fix ganache subprovider config
-rw-r--r--packages/contract_templates/partials/callAsync.handlebars1
-rw-r--r--packages/contract_templates/partials/tx.handlebars2
-rw-r--r--packages/dev-utils/src/web3_factory.ts4
3 files changed, 5 insertions, 2 deletions
diff --git a/packages/contract_templates/partials/callAsync.handlebars b/packages/contract_templates/partials/callAsync.handlebars
index 71c43eb18..99fda80e1 100644
--- a/packages/contract_templates/partials/callAsync.handlebars
+++ b/packages/contract_templates/partials/callAsync.handlebars
@@ -14,6 +14,7 @@ async callAsync(
const encodedData = ethersFunction.data;
const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync(
{
+ to: self.address,
data: encodedData,
},
self._web3Wrapper.getContractDefaults(),
diff --git a/packages/contract_templates/partials/tx.handlebars b/packages/contract_templates/partials/tx.handlebars
index 23bafd869..e297d05e6 100644
--- a/packages/contract_templates/partials/tx.handlebars
+++ b/packages/contract_templates/partials/tx.handlebars
@@ -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,
},
diff --git a/packages/dev-utils/src/web3_factory.ts b/packages/dev-utils/src/web3_factory.ts
index 68348d671..4cd343c44 100644
--- a/packages/dev-utils/src/web3_factory.ts
+++ b/packages/dev-utils/src/web3_factory.ts
@@ -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',
}),
);