Browse Source

Don't throw error upon readding existing contracts (drizzle reinit)

develop
Ezerous 4 years ago
parent
commit
85b4b12fda
  1. 6
      src/Drizzle.js

6
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

Loading…
Cancel
Save