Skip to content

Commit

Permalink
fix: dont resolve null slots with same val
Browse files Browse the repository at this point in the history
  • Loading branch information
samsiegart committed Aug 16, 2023
1 parent 1d48fc4 commit 7cf64bb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/rpc/src/marshal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const makeTranslationTable = (
};

const convertSlotToVal = (slot: unknown, iface: string | undefined) => {
if (slot === null) return makeVal(slot, iface);
if (slotToVal.has(slot)) return slotToVal.get(slot);
const val = makeVal(slot, iface);
valToSlot.set(val, slot);
Expand Down

0 comments on commit 7cf64bb

Please sign in to comment.