fix emiting newTransaction event

pull/1/head
yann300 5 years ago
parent a4db1dd5a3
commit eaf50fea59
  1. 4
      src/app.js
  2. 4
      src/blockchain/pluginUDapp.js

@ -100,8 +100,8 @@ var css = csjs`
}
.centered {
position : fixed;
top : 50%;
left : 50%;
top : 20%;
left : 45%;
width : 200px;
height : 200px;
}

@ -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)
})
}

Loading…
Cancel
Save