mirror of https://github.com/status-im/web3.js.git
Fix #162: allow empty topic list in messages
This commit is contained in:
parent
271b00f069
commit
af443f2acb
|
@ -192,6 +192,9 @@ var outputPostFormatter = function(post){
|
|||
}
|
||||
|
||||
// format the following options
|
||||
if (post.topics == undefined) {
|
||||
post.topics = []
|
||||
}
|
||||
post.topics = post.topics.map(function(topic){
|
||||
return utils.toAscii(topic);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue