diff --git a/src/blockchain/pluginUDapp.js b/src/blockchain/pluginUDapp.js index dec4b51d1d..93c2f9e369 100644 --- a/src/blockchain/pluginUDapp.js +++ b/src/blockchain/pluginUDapp.js @@ -9,8 +9,8 @@ class PluginUdapp { } setupEvents () { - this.blockchain.event.register('newTransaction', (tx, receipt) => { - this.events.trigger('newTransaction', [tx, receipt]) + this.blockchain.events.on('newTransaction', (tx, receipt) => { + this.events.emit('newTransaction', tx, receipt) }) }