Skip to content

Commit

Permalink
unnecessary assert
Browse files Browse the repository at this point in the history
  • Loading branch information
TateB committed Jan 5, 2024
1 parent 6c5e875 commit 2bbe00e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/ensjs/src/functions/public/getRecords.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,10 @@ const encode = (

if (resolver?.address && !resolver.fallbackOnly) {
const encoded = multicallWrapper.encode(client, {
transactions: calls
.filter((c) => c)
.map((c) => ({ to: resolver.address, data: c!.call.data })),
transactions: calls.map((c) => ({
to: resolver.address,
data: c.call.data,
})),
})
return {
...encoded,
Expand All @@ -213,7 +214,7 @@ const encode = (
})
const args = [
toHex(packetToBytes(name)),
calls.filter((c) => c).map((c) => c!.call.data),
calls.map((c) => c.call.data),
] as const

return {
Expand Down

0 comments on commit 2bbe00e

Please sign in to comment.