From 79a34d531117084c29c289b2ad421d7b6bcd519c Mon Sep 17 00:00:00 2001 From: Alex Ni <12097569+nialexsan@users.noreply.github.com> Date: Mon, 25 Sep 2023 11:30:27 -0400 Subject: [PATCH] shallow copy acct --- packages/sdk/src/interaction/interaction.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/sdk/src/interaction/interaction.ts b/packages/sdk/src/interaction/interaction.ts index 704395501..f4c73c4d9 100644 --- a/packages/sdk/src/interaction/interaction.ts +++ b/packages/sdk/src/interaction/interaction.ts @@ -160,7 +160,7 @@ export const prepAccount = (acct: IAcct | IAcctFn, opts: IPrepAccountOpts = {}) const ACCOUNT = initAccount() const role = opts.role const tempId = uuidv4() - let account: Partial = acct + let account: Partial = {...acct} if (acct.authorization && isFn(acct.authorization)) account = {resolve: acct.authorization}