Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
jxom committed Feb 1, 2023
1 parent 0170552 commit 15570eb
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/utils/abi/encodeFunctionData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import { formatAbiItemWithParams } from './formatAbiItemWithParams'
import { getAbiItem } from './getAbiItem'

export type EncodeFunctionDataArgs<
TAbi extends Abi = Abi,
TFunctionName extends string = any,
TAbi extends Abi = Abi,
TFunctionName extends string = any,
> = {
abi: TAbi
functionName: ExtractFunctionNameFromAbi<TAbi, TFunctionName>
Expand All @@ -19,11 +19,7 @@ TFunctionName extends string = any,
export function encodeFunctionData<
TAbi extends Abi = Abi,
TFunctionName extends string = any,
>({
abi,
args,
functionName,
}: EncodeFunctionDataArgs<TAbi, TFunctionName>) {
>({ abi, args, functionName }: EncodeFunctionDataArgs<TAbi, TFunctionName>) {
const description = getAbiItem({ abi, name: functionName })
if (!description)
throw new AbiFunctionNotFoundError(functionName, {
Expand Down

0 comments on commit 15570eb

Please sign in to comment.