diff --git a/src/app.js b/src/app.js index cd7206afa7..359c547d0c 100644 --- a/src/app.js +++ b/src/app.js @@ -267,6 +267,7 @@ function run () { var udappUI = new UniversalDAppUI(udapp) udapp.reset({}, transactionContextAPI) + udappUI.reset() udapp.event.register('debugRequested', this, function (txResult) { startdebugging(txResult.transactionHash) }) @@ -617,6 +618,7 @@ function run () { }, resetDapp: (contracts) => { udapp.reset(contracts, transactionContextAPI) + udappUI.reset() }, setOptimize: (optimize, runCompilation) => { compiler.setOptimize(optimize) diff --git a/src/universal-dapp-ui.js b/src/universal-dapp-ui.js index db59745069..9a84c2e393 100644 --- a/src/universal-dapp-ui.js +++ b/src/universal-dapp-ui.js @@ -17,7 +17,7 @@ function UniversalDAppUI (udapp, opts = {}) { self.el = yo`
` } -UniversalDAppUI.prototype.reset = function (contracts, transactionContextAPI) { +UniversalDAppUI.prototype.reset = function () { this.el.innerHTML = '' }