Skip to content

Commit

Permalink
fix(swingset-liveslots): Throw a "not found" error for store.set(miss…
Browse files Browse the repository at this point in the history
…ingRemotable, val)

Fixes #8098
  • Loading branch information
gibson042 committed Sep 20, 2023
1 parent 4bb95ea commit 7c48d4c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/swingset-liveslots/src/collectionManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,9 @@ export function makeCollectionManager(
}
}
}
if (passStyleOf(key) === 'remotable' && getOrdinal(key) === undefined) {
failNotFound(label, key);
}
const dbKey = keyToDBKey(key);
const rawBefore = syscall.vatstoreGet(dbKey) || failNotFound(label, key);
const before = JSON.parse(rawBefore);
Expand Down

0 comments on commit 7c48d4c

Please sign in to comment.