Merge branch 'master' into ui-2

This commit is contained in:
Jaco Greeff
2017-05-09 13:47:29 +02:00
9 changed files with 112 additions and 31 deletions

View File

@@ -182,10 +182,11 @@ export default class Contract {
log.params = {};
log.event = event.name;
decoded.params.forEach((param) => {
decoded.params.forEach((param, index) => {
const { type, value } = param.token;
const key = param.name || index;
log.params[param.name] = { type, value };
log.params[key] = { type, value };
});
return log;