Commit 0308559e authored by yann300's avatar yann300

fix emiting newTransaction event

parent c4419dec
...@@ -9,8 +9,8 @@ class PluginUdapp { ...@@ -9,8 +9,8 @@ class PluginUdapp {
} }
setupEvents () { setupEvents () {
this.blockchain.event.register('newTransaction', (tx, receipt) => { this.blockchain.events.on('newTransaction', (tx, receipt) => {
this.events.trigger('newTransaction', [tx, receipt]) this.events.emit('newTransaction', tx, receipt)
}) })
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment