From bde3e6ea8a973ed5bdb59302666456018471f315 Mon Sep 17 00:00:00 2001
From: Robert Martin-Legene <robert@martin-legene.dk>
Date: Thu, 10 Dec 2020 19:03:28 -0300
Subject: [PATCH] JSON does not want to become JSON ;-)

---
 bin/libbfa/__init__.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/bin/libbfa/__init__.py b/bin/libbfa/__init__.py
index e540c4a..b679f72 100755
--- a/bin/libbfa/__init__.py
+++ b/bin/libbfa/__init__.py
@@ -386,6 +386,8 @@ class CompiledContract:
             where = json.loads(where)
         if (type(where) is dict) and 'abi' in where:
             where = where['abi']
+        if type(where) is str:
+            where = json.loads(where)
         return Abi(where)
 
     def instance(self, *args, **kwargs):
-- 
GitLab