Skip to content

Commit 4376837

Browse files
committed
fix: simplify account#signTransaction interface
1 parent 06fc661 commit 4376837

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

.changeset/rare-dryers-cough.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"viem": patch
3+
---
4+
5+
Simplify `account#signTransaction` interface.

src/accounts/types.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,7 @@ export type CustomSource = {
4646
serializer?: serializer | undefined
4747
}
4848
| undefined,
49-
) => Promise<
50-
IsNarrowable<
51-
TransactionSerialized<GetTransactionType<transaction>>,
52-
Hex
53-
> extends true
54-
? TransactionSerialized<GetTransactionType<transaction>>
55-
: Hex
56-
>
49+
) => Promise<Hex>
5750
signTypedData: <
5851
const typedData extends TypedData | Record<string, unknown>,
5952
primaryType extends keyof typedData | 'EIP712Domain' = keyof typedData,

0 commit comments

Comments
 (0)