Skip to content

Commit

Permalink
Merge pull request #140 from base-org/fix-typescript-inference-error
Browse files Browse the repository at this point in the history
Fix TS2742: The inferred type of 'serializeEip1559Transaction' cannot…
  • Loading branch information
zencephalon authored Oct 19, 2023
2 parents 231392b + bdccff4 commit de18179
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/transactionSerializer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ import {
/**
* Serializes a transaction with EIP-1559
*/
export const serializeEip1559Transaction = <
export function serializeEip1559Transaction<
TAbi extends Abi | readonly unknown[],
TFunctionName extends string | undefined = undefined,
>(
options:
& EncodeFunctionDataParameters<TAbi, TFunctionName>
& Omit<TransactionSerializableEIP1559, 'data'>,
): TransactionSerializedEIP1559 => {
): TransactionSerializedEIP1559 {
const encodedFunctionData = encodeFunctionData(options)
const serializedTransaction = serializeTransaction({
...options,
Expand Down

0 comments on commit de18179

Please sign in to comment.