Skip to content

Commit

Permalink
Patch function overload handling in objectToArray
Browse files Browse the repository at this point in the history
  • Loading branch information
ryangoree committed Dec 14, 2024
1 parent 59ba96c commit 786cc9f
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/tough-lobsters-destroy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@delvtech/drift": patch
---

Patched overloaded function handling in `objectToArray`
2 changes: 1 addition & 1 deletion packages/drift/src/adapter/utils/objectToArray.ts
Original file line number Diff line number Diff line change
@@ -109,7 +109,7 @@ export function objectToArray<
for (const [i, input] of entry.inputs.entries()) {
const key = input.name || i;
if (key in args) potentialKeyMatchCount++;
arrayArgs.push(args[key]);
potentialArrayArgs.push(args[key]);
}

if (potentialKeyMatchCount > keyMatchCount) {

0 comments on commit 786cc9f

Please sign in to comment.