Skip to content

Commit

Permalink
fix: Wrong conflict resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
alainncls committed Oct 24, 2023
1 parent 4e997c0 commit 65ee3da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 17 deletions.
5 changes: 2 additions & 3 deletions sdk/src/dataMapper/SchemaDataMapper.ts
Original file line number Diff line number Diff line change
@@ -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<Schema, Schema_filter, Schema_orderBy> {
typeName = "schema";
Expand Down Expand Up @@ -63,7 +63,6 @@ export default class SchemaDataMapper extends BaseDataMapper<Schema, Schema_filt
return this.executeReadMethod("schemaIds", [index]);
}

// TODO: Use correct type for args
private async executeReadMethod(functionName: string, args: unknown[]) {
return this.web3Client.readContract({
abi: abiSchemaRegistry,
Expand All @@ -85,7 +84,7 @@ export default class SchemaDataMapper extends BaseDataMapper<Schema, Schema_filt

return request;
} catch (err) {
handleError(err);
handleSimulationError(err);
}
}
}
14 changes: 0 additions & 14 deletions sdk/src/utils/errorHandler.ts

This file was deleted.

0 comments on commit 65ee3da

Please sign in to comment.