Skip to content

Commit

Permalink
remove viem import
Browse files Browse the repository at this point in the history
  • Loading branch information
MoizAhmedd committed Nov 26, 2024
1 parent 38c2bff commit 78048bb
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 9 deletions.
Binary file modified example-dimo-auth/dimo-network-login-with-dimo-0.0.9.tgz
Binary file not shown.
2 changes: 1 addition & 1 deletion example-dimo-auth/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions example-dimo-auth/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand Down
3 changes: 1 addition & 2 deletions sdk/src/components/ExecuteAdvancedTransactionWithDimo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -14,7 +13,7 @@ interface ExecuteAdvancedTransactionProps {
onError: (error: Error) => void; // Error callback
address: string;
value: string;
abi: Abi;
abi: any;
functionName: string;
args: string[];
}
Expand Down
5 changes: 1 addition & 4 deletions sdk/src/types/TransactionData.ts
Original file line number Diff line number Diff line change
@@ -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[];
}

0 comments on commit 78048bb

Please sign in to comment.