From 85b4b12fda20c15b7514ddb56d8cdbac4f3f8d6d Mon Sep 17 00:00:00 2001
From: Ezerous <ezerous@gmail.com>
Date: Sat, 5 Sep 2020 15:20:12 +0300
Subject: [PATCH] Don't throw error upon readding existing contracts (drizzle
 reinit)

---
 src/Drizzle.js | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/src/Drizzle.js b/src/Drizzle.js
index ee40798..b52eeed 100644
--- a/src/Drizzle.js
+++ b/src/Drizzle.js
@@ -81,12 +81,6 @@ class Drizzle {
       events
     )
 
-    if (this.contracts[drizzleContract.contractName]) {
-      throw new Error(
-        `Contract already exists: ${drizzleContract.contractName}`
-      )
-    }
-
     this.store.dispatch({ type: ContractActions.CONTRACT_INITIALIZING, contractConfig })
 
     this.contracts[drizzleContract.contractName] = drizzleContract