diff --git a/example-dimo-auth/dimo-network-login-with-dimo-0.0.9.tgz b/example-dimo-auth/dimo-network-login-with-dimo-0.0.9.tgz index 84e0045..33d1c0d 100644 Binary files a/example-dimo-auth/dimo-network-login-with-dimo-0.0.9.tgz and b/example-dimo-auth/dimo-network-login-with-dimo-0.0.9.tgz differ diff --git a/example-dimo-auth/package-lock.json b/example-dimo-auth/package-lock.json index 2283468..4de133b 100644 --- a/example-dimo-auth/package-lock.json +++ b/example-dimo-auth/package-lock.json @@ -2237,7 +2237,7 @@ "node_modules/@dimo-network/login-with-dimo": { "version": "0.0.9", "resolved": "file:dimo-network-login-with-dimo-0.0.9.tgz", - "integrity": "sha512-m1JnrFmLBb/Z2Sj1QFjcNGg7XpdtMAa/28wBvFDPlV9XfUSzkp4USW2jZBw/utlLD+vW/pRiNUDcCaPO6pCSSw==", + "integrity": "sha512-F2xCQOcB+QkMIN/4gbSr88m9+k1kGfF6lBaDUjxcdAqyYMO0lCHVRBLwAl8J5e8jA4aIWHDerDhX+JWu6Roc1Q==", "license": "ISC", "peerDependencies": { "react": "^18.0.0", diff --git a/example-dimo-auth/src/App.tsx b/example-dimo-auth/src/App.tsx index bb11ed4..c09f1fc 100644 --- a/example-dimo-auth/src/App.tsx +++ b/example-dimo-auth/src/App.tsx @@ -8,13 +8,12 @@ import { initializeDimoSDK, useDimoAuthState, } from "@dimo-network/login-with-dimo"; -import { Abi } from "viem"; function App() { const [permissionsEnabled, setPermissionsEnabled] = useState(false); const { isAuthenticated, getValidJWT } = useDimoAuthState(); - const sampleAbi: Abi = [ + const sampleAbi = [ { anonymous: false, inputs: [ diff --git a/sdk/src/components/ExecuteAdvancedTransactionWithDimo.tsx b/sdk/src/components/ExecuteAdvancedTransactionWithDimo.tsx index 6bd4880..f6c9f9c 100644 --- a/sdk/src/components/ExecuteAdvancedTransactionWithDimo.tsx +++ b/sdk/src/components/ExecuteAdvancedTransactionWithDimo.tsx @@ -2,7 +2,6 @@ import React from "react"; import BaseDimoButton from "./BaseDimoButton"; import { EntryState } from "../enums/globalEnums"; import { TransactionData } from "../types/TransactionData"; -import { Abi } from "viem"; // Assuming `Abi` is imported from viem types interface ExecuteAdvancedTransactionProps { mode: "popup" | "embed" | "redirect"; @@ -14,7 +13,7 @@ interface ExecuteAdvancedTransactionProps { onError: (error: Error) => void; // Error callback address: string; value: string; - abi: Abi; + abi: any; functionName: string; args: string[]; } diff --git a/sdk/src/types/TransactionData.ts b/sdk/src/types/TransactionData.ts index 11a9dba..e916390 100644 --- a/sdk/src/types/TransactionData.ts +++ b/sdk/src/types/TransactionData.ts @@ -1,10 +1,7 @@ -import { Abi } from "viem"; // Assuming `Abi` is imported from viem types - - export interface TransactionData { address: string; value: string; - abi: Abi; // Serialized ABI + abi: any; // Serialized ABI functionName: string; args: string[]; }