Skip to content

Commit

Permalink
Merge pull-request #298
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorjdawson committed Jun 14, 2024
2 parents 45ea4b3 + d59e1b6 commit 20273b4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/pink-roses-wait.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@turnkey/viem": patch
---

Add export of turnkey viem account functions
6 changes: 3 additions & 3 deletions packages/viem/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ export async function createApiKeyAccount(
});
}

async function signMessage(
export async function signMessage(
client: TurnkeyClient | TurnkeyBrowserClient | TurnkeyServerClient,
message: SignableMessage,
organizationId: string,
Expand All @@ -210,7 +210,7 @@ async function signMessage(
return `${signedMessage}` as Hex;
}

async function signTransaction<
export async function signTransaction<
TTransactionSerializable extends TransactionSerializable
>(
client: TurnkeyClient | TurnkeyBrowserClient | TurnkeyServerClient,
Expand All @@ -229,7 +229,7 @@ async function signTransaction<
);
}

async function signTypedData(
export async function signTypedData(
client: TurnkeyClient | TurnkeyBrowserClient | TurnkeyServerClient,
data: TypedData | { [key: string]: unknown },
organizationId: string,
Expand Down

0 comments on commit 20273b4

Please sign in to comment.