aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorGreg Hysen <greg.hysen@gmail.com>2018-06-20 08:21:31 +0800
committerGreg Hysen <greg.hysen@gmail.com>2018-06-21 04:54:39 +0800
commit783ac3c10575447878cf339fddfc0d00ffeb1c85 (patch)
treed24e82bb9bc41ed13b681d09b04f3e9ad64ecbc9 /packages
parentd46e3f677805c8e3e4b4873fb9b0cec2988a4d63 (diff)
downloaddexon-sol-tools-783ac3c10575447878cf339fddfc0d00ffeb1c85.tar.gz
dexon-sol-tools-783ac3c10575447878cf339fddfc0d00ffeb1c85.tar.zst
dexon-sol-tools-783ac3c10575447878cf339fddfc0d00ffeb1c85.zip
Fixed `callAsync` template. Previously did not append `callData`, so we couldn’t specify `from` address
Diffstat (limited to 'packages')
-rw-r--r--packages/contract_templates/partials/callAsync.handlebars1
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/contract_templates/partials/callAsync.handlebars b/packages/contract_templates/partials/callAsync.handlebars
index 5d14b1823..35fbe3c85 100644
--- a/packages/contract_templates/partials/callAsync.handlebars
+++ b/packages/contract_templates/partials/callAsync.handlebars
@@ -15,6 +15,7 @@ async callAsync(
const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync(
{
to: self.address,
+ ...callData,
data: encodedData,
},
self._web3Wrapper.getContractDefaults(),