Emit Trasnfer event on SimpleToken creation

This commit is contained in:
Facundo Spagnuolo
2018-01-09 12:25:50 -03:00
parent 59cd714b84
commit 17884e91a1
3 changed files with 50 additions and 0 deletions

View File

@ -0,0 +1,8 @@
const SolidityEvent = require('web3/lib/web3/event.js');
export default function decodeLogs (logs, contract, address) {
return logs.map(log => {
const event = new SolidityEvent(null, contract.events[log.topics[0]], address);
return event.decode(log);
});
}