Skip to content

Commit 5fa9903

Browse files
committed
refactor: agoric/assert -> endo/errors
1 parent 8fa8208 commit 5fa9903

File tree

4 files changed

+5
-12
lines changed

4 files changed

+5
-12
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,14 @@
4040
"@agoric/ertp": "community-dev",
4141
"@agoric/zoe": "community-dev",
4242
"@agoric/zone": "0.2.3-u13.0",
43+
"@endo/errors": "^1.2.4",
4344
"@endo/far": "^0.2.19",
4445
"@endo/marshal": "^0.8.6",
4546
"@endo/pass-style": "^0.1.6",
4647
"@endo/patterns": "^0.2.3",
4748
"typescript": "^4.0.3"
4849
},
4950
"devDependencies": {
50-
"@agoric/assert": "community-dev",
5151
"@agoric/cosmic-swingset": "community-dev",
5252
"@agoric/ertp": "community-dev",
5353
"@agoric/notifier": "community-dev",

snippets/tools/zoeTestHelpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { E } from '@endo/eventual-send';
22

33
import { AmountMath, assertValueGetHelpers } from '@agoric/ertp';
44

5-
import { q } from '@agoric/assert';
5+
import { q } from '@endo/errors';
66

77
export const assertAmountsEqual = (t, amount, expected, label = '') => {
88
harden(amount);

snippets/zoe/contracts/test-oracle.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { makeFakeVatAdmin } from '@agoric/zoe/tools/fakeVatAdmin.js';
99
import { makeZoeKit } from '@agoric/zoe';
1010
import bundleSource from '@endo/bundle-source';
1111
import { makeIssuerKit, AssetKind, AmountMath } from '@agoric/ertp';
12-
import { assert, details } from '@agoric/assert';
12+
import { assert, redacted } from '@endo/errors';
1313
import { E } from '@endo/eventual-send';
1414
import { Far } from '@endo/marshal';
1515

@@ -43,7 +43,7 @@ test('oracle contract', async t => {
4343
requiredFee = feeAmount;
4444
assert(
4545
AmountMath.isGTE(fee, requiredFee),
46-
details`Minimum fee of ${feeAmount} not met; have ${fee}`,
46+
redacted`Minimum fee of ${feeAmount} not met; have ${fee}`,
4747
);
4848
}
4949
return harden({ reply, requiredFee });

yarn.lock

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,6 @@ __metadata:
3737
languageName: node
3838
linkType: hard
3939

40-
"@agoric/assert@npm:community-dev":
41-
version: 0.6.1-u16.0
42-
resolution: "@agoric/assert@npm:0.6.1-u16.0"
43-
checksum: 10c0/20745c7732e78b28ccedbf4dcdae9ebd7de05fa2f112fbd5306e350e5a6ff83020f7aadab7f6fb3ac9507f336ecdbd71d1c74962b774d5ec1b38066d1f95fa40
44-
languageName: node
45-
linkType: hard
46-
4740
"@agoric/babel-generator@npm:^7.17.4, @agoric/babel-generator@npm:^7.17.6":
4841
version: 7.17.6
4942
resolution: "@agoric/babel-generator@npm:7.17.6"
@@ -251,7 +244,6 @@ __metadata:
251244
version: 0.0.0-use.local
252245
resolution: "@agoric/documentation@workspace:."
253246
dependencies:
254-
"@agoric/assert": "npm:community-dev"
255247
"@agoric/cosmic-swingset": "npm:community-dev"
256248
"@agoric/ertp": "npm:community-dev"
257249
"@agoric/notifier": "npm:community-dev"
@@ -261,6 +253,7 @@ __metadata:
261253
"@agoric/zoe": "npm:community-dev"
262254
"@agoric/zone": "npm:0.2.3-u13.0"
263255
"@endo/bundle-source": "npm:2.5.2-upstream-rollup"
256+
"@endo/errors": "npm:^1.2.4"
264257
"@endo/eventual-send": "npm:^0.17.2"
265258
"@endo/far": "npm:^0.2.19"
266259
"@endo/init": "npm:^0.5.56"

0 commit comments

Comments
 (0)