From 65ee3daef35b86769da79053964d9469204bc77e Mon Sep 17 00:00:00 2001 From: Alain Nicolas Date: Tue, 24 Oct 2023 11:58:20 +0200 Subject: [PATCH] fix: Wrong conflict resolution --- sdk/src/dataMapper/SchemaDataMapper.ts | 5 ++--- sdk/src/utils/errorHandler.ts | 14 -------------- 2 files changed, 2 insertions(+), 17 deletions(-) delete mode 100644 sdk/src/utils/errorHandler.ts diff --git a/sdk/src/dataMapper/SchemaDataMapper.ts b/sdk/src/dataMapper/SchemaDataMapper.ts index 463482ce..d6985492 100644 --- a/sdk/src/dataMapper/SchemaDataMapper.ts +++ b/sdk/src/dataMapper/SchemaDataMapper.ts @@ -1,10 +1,10 @@ import { Address } from "viem"; import { Schema_filter, Schema_orderBy } from "../../.graphclient"; import { Schema } from "../types"; -import { handleError } from "../utils/errorHandler"; import BaseDataMapper from "./BaseDataMapper"; import { abiSchemaRegistry } from "../abi/SchemaRegistry"; import { executeTransaction } from "../utils/transactionSender"; +import { handleSimulationError } from "../utils/simulationErrorHandler"; export default class SchemaDataMapper extends BaseDataMapper { typeName = "schema"; @@ -63,7 +63,6 @@ export default class SchemaDataMapper extends BaseDataMapper err instanceof ContractFunctionRevertedError); - if (revertError instanceof ContractFunctionRevertedError) { - const errorName = revertError.data?.errorName ?? ""; - console.error(`Failing with ${errorName}`); - } - } - console.error(err); - - throw new Error("Simulation failed"); -}