From af443f2acb3ef49e0ff1f451d7b9fbba628d108a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20Szil=C3=A1gyi?= Date: Thu, 16 Apr 2015 18:05:08 +0300 Subject: [PATCH] Fix #162: allow empty topic list in messages --- lib/web3/formatters.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/web3/formatters.js b/lib/web3/formatters.js index 5327878..4388f64 100644 --- a/lib/web3/formatters.js +++ b/lib/web3/formatters.js @@ -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); });