From fd078f900c19fbcc0e0ab6c366eab3010a9dd2aa Mon Sep 17 00:00:00 2001 From: yann300 Date: Tue, 12 Sep 2017 15:50:21 +0200 Subject: [PATCH] set transactionContextAPI only if not null --- src/universal-dapp.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/universal-dapp.js b/src/universal-dapp.js index 3ea912936a..157e9d73aa 100644 --- a/src/universal-dapp.js +++ b/src/universal-dapp.js @@ -121,7 +121,9 @@ function UniversalDApp (opts = {}) { UniversalDApp.prototype.reset = function (contracts, transactionContextAPI) { this.el.innerHTML = '' this.contracts = contracts + if (transactionContextAPI) { this.transactionContextAPI = transactionContextAPI + } this.accounts = {} if (executionContext.isVM()) { this._addAccount('3cd7232cd6f3fc66a57a6bedc1a8ed6c228fff0a327e169c2bcc5e869ed49511', '0x56BC75E2D63100000')