Skip to content

Commit

Permalink
Allow for multiple parameters in resolver function
Browse files Browse the repository at this point in the history
  • Loading branch information
jribbink committed May 26, 2022
1 parent bbd3597 commit cd2141b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/sdk/src/interaction/interaction.js
Expand Up @@ -165,8 +165,11 @@ export const prepAccount = (acct, opts = {}) => ix => {

const resolve = acct.resolve
if (resolve)
acct.resolve = acct =>
[resolve, prepAccountKeyId].reduce(async (d, fn) => fn(await d), acct)
acct.resolve = (acct, ...rest) =>
[resolve, prepAccountKeyId].reduce(
async (d, fn) => fn(await d, ...rest),
acct
)
acct = prepAccountKeyId(acct)

ix.accounts[tempId] = {
Expand Down

0 comments on commit cd2141b

Please sign in to comment.