From 40c41e22a69d6d00812b24f8763fa61e46939209 Mon Sep 17 00:00:00 2001 From: Mathieu Hofman <86499+mhofman@users.noreply.github.com> Date: Thu, 13 Jun 2024 20:11:37 -0700 Subject: [PATCH] fix(SwingSet): Undo deviceTools behavioral change from #9153 (#9506) refs: #9153 ## Description This partially reverts the behavioral change from `deviceTools` from #9153. ### Security Considerations None ### Scaling Considerations None ### Documentation Considerations None ### Testing Considerations None ### Upgrade Considerations DeviceTools are bundled into device bundles, so we want to minimize difference between code executing and code on disk. --- packages/SwingSet/src/devices/lib/deviceTools.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/SwingSet/src/devices/lib/deviceTools.js b/packages/SwingSet/src/devices/lib/deviceTools.js index da3f01c7417..562d2daab1a 100644 --- a/packages/SwingSet/src/devices/lib/deviceTools.js +++ b/packages/SwingSet/src/devices/lib/deviceTools.js @@ -74,11 +74,11 @@ export function buildSerializationTools(syscall, deviceName) { } const m = makeMarshal(convertValToSlot, convertSlotToVal, { - marshalName: `deviceTools:${deviceName}`, + marshalName: `device:${deviceName}`, serializeBodyFormat: 'smallcaps', // TODO Temporary hack. // See https://github.com/Agoric/agoric-sdk/issues/2780 - errorIdNum: 40_000, + errorIdNum: 60_000, }); // for invoke(), these will unserialize the arguments, and serialize the