Skip to content

Commit

Permalink
fix(builder): fix invoke getInputs take array or string (#1243)
Browse files Browse the repository at this point in the history
Co-authored-by: saeta.eth <saetaeth@proton.me>
  • Loading branch information
FuzzB0t and saeta-eth authored Aug 14, 2024
1 parent 51e3dc0 commit 5246f47
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/builder/src/steps/invoke.ts
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,10 @@ const invokeSpec = {
accesses = mergeTemplateAccesses(accesses, computeTemplateAccesses(config.from, possibleFields));
accesses = mergeTemplateAccesses(accesses, computeTemplateAccesses(config.value, possibleFields));

if (typeof config.target === 'string') {
config.target = [config.target as string];
}

for (const target of config.target) {
if (!viem.isAddress(target as any)) {
if (target.includes('.')) {
Expand Down

0 comments on commit 5246f47

Please sign in to comment.