You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
270 B
9 lines
270 B
7 years ago
|
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);
|
||
|
});
|
||
|
}
|