From 802b4383086b67b01088d3e834795d03de4ff8ee Mon Sep 17 00:00:00 2001 From: Alain Nicolas Date: Tue, 10 Dec 2024 21:29:39 +0100 Subject: [PATCH] fix(sdk): AttestV2 doesn't support customABI --- sdk/package.json | 2 +- sdk/src/dataMapper/PortalDataMapper.ts | 16 +++++++++++++--- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/sdk/package.json b/sdk/package.json index 082cb3d8..3eced1a9 100644 --- a/sdk/package.json +++ b/sdk/package.json @@ -1,6 +1,6 @@ { "name": "@verax-attestation-registry/verax-sdk", - "version": "2.2.1", + "version": "2.2.2", "description": "Verax Attestation Registry SDK to interact with the subgraph and the contracts", "keywords": [ "linea-attestation-registry", diff --git a/sdk/src/dataMapper/PortalDataMapper.ts b/sdk/src/dataMapper/PortalDataMapper.ts index 252c1715..d305bc23 100644 --- a/sdk/src/dataMapper/PortalDataMapper.ts +++ b/sdk/src/dataMapper/PortalDataMapper.ts @@ -2,13 +2,12 @@ import { AttestationPayload, Portal } from "../types"; import { ActionType } from "../utils/constants"; import BaseDataMapper from "./BaseDataMapper"; import { abiDefaultPortal } from "../abi/DefaultPortal"; -import { Address } from "viem"; +import { Abi, Address } from "viem"; import { encode } from "../utils/abiCoder"; import { Portal_filter, Portal_orderBy } from "../../.graphclient"; import { abiPortalRegistry } from "../abi/PortalRegistry"; import { handleError } from "../utils/errorHandler"; import { executeTransaction } from "../utils/transactionSender"; -import { Abi } from "viem"; export default class PortalDataMapper extends BaseDataMapper { typeName = "portal"; @@ -95,6 +94,7 @@ export default class PortalDataMapper extends BaseDataMapper