From c62616543dc378fe8ad6bb5dae7c63b89676fe20 Mon Sep 17 00:00:00 2001 From: yann300 Date: Thu, 19 Jan 2017 11:25:57 +0100 Subject: [PATCH] fix struct test --- src/ui/SolidityTypeFormatter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/SolidityTypeFormatter.js b/src/ui/SolidityTypeFormatter.js index 9f34f43edb..6d0d0b342e 100644 --- a/src/ui/SolidityTypeFormatter.js +++ b/src/ui/SolidityTypeFormatter.js @@ -51,5 +51,5 @@ function isArray (type) { } function isStruct (type) { - return type.indexOf('struct') === 0 + return type.indexOf('struct') === 0 && !isArray(type) }