Skip to content

Commit

Permalink
feat: remove config validation
Browse files Browse the repository at this point in the history
  • Loading branch information
VPringle97 committed May 9, 2022
1 parent 934b2b6 commit 362a84f
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/contracts/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
import {
MsgExecuteContractParams,
Tx,
TxOptions,
} from 'secretjs';
import { MsgExecuteContractParams, Tx, TxOptions } from 'secretjs';
import {
queryContract,
executeContract,
Expand Down Expand Up @@ -179,10 +175,8 @@ export function createContract<T>(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) {
Expand Down

0 comments on commit 362a84f

Please sign in to comment.