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"); -}