We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
account#signTransaction
1 parent 06fc661 commit 4376837Copy full SHA for 4376837
.changeset/rare-dryers-cough.md
@@ -0,0 +1,5 @@
1
+---
2
+"viem": patch
3
4
+
5
+Simplify `account#signTransaction` interface.
src/accounts/types.ts
@@ -46,14 +46,7 @@ export type CustomSource = {
46
serializer?: serializer | undefined
47
}
48
| undefined,
49
- ) => Promise<
50
- IsNarrowable<
51
- TransactionSerialized<GetTransactionType<transaction>>,
52
- Hex
53
- > extends true
54
- ? TransactionSerialized<GetTransactionType<transaction>>
55
- : Hex
56
- >
+ ) => Promise<Hex>
57
signTypedData: <
58
const typedData extends TypedData | Record<string, unknown>,
59
primaryType extends keyof typedData | 'EIP712Domain' = keyof typedData,
0 commit comments