Skip to content

Commit

Permalink
fix: resolves #2591
Browse files Browse the repository at this point in the history
  • Loading branch information
jxom committed Aug 7, 2024
1 parent 0fba06b commit a6d087e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/sharp-lamps-help.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

Fixed ABI inference on `prepareEncodeFunctionData`
2 changes: 1 addition & 1 deletion src/utils/abi/prepareEncodeFunctionData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export type PrepareEncodeFunctionDataReturnType<
abi: abi extends Abi
? functionName extends ContractFunctionName<abi>
? [ExtractAbiFunction<abi, functionName>]
: Abi
: abi
: Abi
functionName: Hex
}
Expand Down

0 comments on commit a6d087e

Please sign in to comment.