From c093aab350dfbd86972d6388c3923ec60fc4501a Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Fri, 11 May 2018 11:59:08 +0200 Subject: Fix ganache subprovider config --- packages/contract_templates/partials/callAsync.handlebars | 1 + packages/contract_templates/partials/tx.handlebars | 2 ++ 2 files changed, 3 insertions(+) (limited to 'packages/contract_templates/partials') 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, }, -- cgit