Skip to content

Commit

Permalink
fix: typescript check error
Browse files Browse the repository at this point in the history
  • Loading branch information
kiriyaga committed Nov 27, 2024
1 parent 55cc3a5 commit 76ec5ec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/app/src/composables/useTransactionData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ export function decodeDataWithABI(
}
}

export function decodeInputData(input: ParamType | null, args: Result): InputData[] {
export function decodeInputData(input: ParamType, args: Result): InputData[] {
if (!input) {
return undefined;
throw new Error("input_is_null");
}

if (input.isArray()) {
Expand All @@ -85,7 +85,7 @@ export function decodeInputData(input: ParamType | null, args: Result): InputDat
}

function decodeArrayInputData(input: ParamType, args: Result): InputData[] {
const inputs = args.flatMap((arg) => decodeInputData(input.arrayChildren, arg));
const inputs = args.flatMap((arg) => decodeInputData(input.arrayChildren!, arg));

return [
{
Expand Down

0 comments on commit 76ec5ec

Please sign in to comment.