@agoric/zoe 0.26.3-dev-ad14428.0 → 0.26.3-dev-7e4a2e1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agoric/zoe",
3
- "version": "0.26.3-dev-ad14428.0+ad14428",
3
+ "version": "0.26.3-dev-7e4a2e1.0+7e4a2e1",
4
4
  "description": "Zoe: the Smart Contract Framework for Offer Enforcement",
5
5
  "type": "module",
6
6
  "main": "./src/zoeService/zoe.js",
@@ -43,21 +43,22 @@
43
43
  },
44
44
  "homepage": "https://github.com/Agoric/agoric-sdk#readme",
45
45
  "dependencies": {
46
- "@agoric/assert": "0.6.1-dev-ad14428.0+ad14428",
47
- "@agoric/base-zone": "0.1.1-dev-ad14428.0+ad14428",
48
- "@agoric/ertp": "0.16.3-dev-ad14428.0+ad14428",
49
- "@agoric/internal": "0.3.3-dev-ad14428.0+ad14428",
50
- "@agoric/notifier": "0.6.3-dev-ad14428.0+ad14428",
51
- "@agoric/store": "0.9.3-dev-ad14428.0+ad14428",
52
- "@agoric/swingset-liveslots": "0.10.3-dev-ad14428.0+ad14428",
53
- "@agoric/swingset-vat": "0.32.3-dev-ad14428.0+ad14428",
54
- "@agoric/time": "0.3.3-dev-ad14428.0+ad14428",
55
- "@agoric/vat-data": "0.5.3-dev-ad14428.0+ad14428",
56
- "@agoric/zone": "0.2.3-dev-ad14428.0+ad14428",
46
+ "@agoric/assert": "0.6.1-dev-7e4a2e1.0+7e4a2e1",
47
+ "@agoric/base-zone": "0.1.1-dev-7e4a2e1.0+7e4a2e1",
48
+ "@agoric/ertp": "0.16.3-dev-7e4a2e1.0+7e4a2e1",
49
+ "@agoric/internal": "0.3.3-dev-7e4a2e1.0+7e4a2e1",
50
+ "@agoric/notifier": "0.6.3-dev-7e4a2e1.0+7e4a2e1",
51
+ "@agoric/store": "0.9.3-dev-7e4a2e1.0+7e4a2e1",
52
+ "@agoric/swingset-liveslots": "0.10.3-dev-7e4a2e1.0+7e4a2e1",
53
+ "@agoric/swingset-vat": "0.32.3-dev-7e4a2e1.0+7e4a2e1",
54
+ "@agoric/time": "0.3.3-dev-7e4a2e1.0+7e4a2e1",
55
+ "@agoric/vat-data": "0.5.3-dev-7e4a2e1.0+7e4a2e1",
56
+ "@agoric/zone": "0.2.3-dev-7e4a2e1.0+7e4a2e1",
57
57
  "@endo/bundle-source": "^3.1.0",
58
58
  "@endo/captp": "^4.0.4",
59
59
  "@endo/common": "^1.1.0",
60
60
  "@endo/eventual-send": "^1.1.2",
61
+ "@endo/exo": "^1.2.1",
61
62
  "@endo/far": "^1.0.4",
62
63
  "@endo/import-bundle": "^1.0.4",
63
64
  "@endo/marshal": "^1.3.0",
@@ -67,7 +68,7 @@
67
68
  "yargs-parser": "^21.1.1"
68
69
  },
69
70
  "devDependencies": {
70
- "@agoric/kmarshal": "0.1.1-dev-ad14428.0+ad14428",
71
+ "@agoric/kmarshal": "0.1.1-dev-7e4a2e1.0+7e4a2e1",
71
72
  "@endo/init": "^1.0.4",
72
73
  "ava": "^5.3.0",
73
74
  "c8": "^9.1.0",
@@ -140,5 +141,5 @@
140
141
  "typeCoverage": {
141
142
  "atLeast": 84.73
142
143
  },
143
- "gitHead": "ad1442897e5b48ca8fe7f647c90464472ab8b373"
144
+ "gitHead": "7e4a2e141e00cd3a47185591b57188c8d98c2310"
144
145
  }
@@ -1,6 +1,6 @@
1
1
  // @jessie-check
2
2
 
3
- import { assert, details as X } from '@agoric/assert';
3
+ import { assert, details as X, Fail, quote as q } from '@agoric/assert';
4
4
  import { E } from '@endo/eventual-send';
5
5
 
6
6
  export const makeInvitationQueryFns = invitationIssuer => {
@@ -13,10 +13,12 @@ export const makeInvitationQueryFns = invitationIssuer => {
13
13
  assert.note(err, X`Due to ${reason}`);
14
14
  throw err;
15
15
  };
16
- return E.get(
17
- E.get(E(invitationIssuer).getAmountOf(invitationP).catch(onRejected))
18
- .value,
19
- )[0];
16
+ const invAmount = await E(invitationIssuer)
17
+ .getAmountOf(invitationP)
18
+ .catch(onRejected);
19
+ (Array.isArray(invAmount.value) && invAmount.value.length === 1) ||
20
+ Fail`Expected exactly 1 invitation, not ${q(invAmount.value.length)}`;
21
+ return invAmount.value[0];
20
22
  };
21
23
 
22
24
  /** @type {GetInstance} */