Skip to content

Commit

Permalink
fix: resolves #92
Browse files Browse the repository at this point in the history
  • Loading branch information
jxom committed May 4, 2024
1 parent 2b652e3 commit b8c1828
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/hooks/useAutoloadAbi.ts
Expand Up @@ -43,7 +43,10 @@ export function useAutoloadAbiQueryOptions({
})
if (!result.abi.some((item) => (item as { name?: string }).name))
return null
return result.abi || null
return result.abi.map((abiItem) => ({
...abiItem,
outputs: 'outputs' in abiItem && abiItem.outputs ? abiItem.outputs : [],
}))
},
})
}
Expand Down

0 comments on commit b8c1828

Please sign in to comment.