Skip to content

Commit 71cf6c8

Browse files
committed
fix: forgot to add to set
1 parent e333a61 commit 71cf6c8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/dev/AccountOpener.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ export class AccountOpener {
7575
const cm = this.sdk.marketRegister.findCreditManager(c.creditManager);
7676
const toApproveOnCM = toApprove.get(c.creditManager) ?? new Set();
7777
toApproveOnCM.add(cm.underlying);
78+
toApprove.upsert(c.creditManager, toApproveOnCM);
7879
}
7980
for (const [cmAddr, tokens] of toApprove.entries()) {
8081
const cm = this.sdk.marketRegister.findCreditManager(cmAddr);

0 commit comments

Comments
 (0)