From 362a84f29903279a4fbe937dd794e95b90d5805b Mon Sep 17 00:00:00 2001 From: Valeria Pringle Date: Mon, 9 May 2022 14:22:38 -0700 Subject: [PATCH] feat: remove config validation --- src/contracts/index.ts | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/contracts/index.ts b/src/contracts/index.ts index efb4275..fe22182 100644 --- a/src/contracts/index.ts +++ b/src/contracts/index.ts @@ -1,8 +1,4 @@ -import { - MsgExecuteContractParams, - Tx, - TxOptions, -} from 'secretjs'; +import { MsgExecuteContractParams, Tx, TxOptions } from 'secretjs'; import { queryContract, executeContract, @@ -179,10 +175,8 @@ export function createContract(contract: ContractSpecification): T { codeHash ); - const config = getConfig(); - if (!config) throw new Error('No config available'); - return ContractTxResponseHandler.of(response); + } catch (e: any) { const errorHandler = getErrorHandler(contract.id, e); if (errorHandler) {