Skip to content

Commit

Permalink
fix(types): agoricContract shape check
Browse files Browse the repository at this point in the history
  • Loading branch information
turadg committed Jul 12, 2024
1 parent 0c4f75e commit 20e1779
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/smart-wallet/src/invitations.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Fail } from '@endo/errors';
import { E } from '@endo/far';
import { AmountMath } from '@agoric/ertp';
import { mustMatch } from '@agoric/store';
import { InvitationHandleShape } from '@agoric/zoe/src/typeGuards.js';
import { InvitationShape } from '@agoric/zoe/src/typeGuards.js';
import { Fail } from '@endo/errors';
import { E } from '@endo/far';
import { shape } from './typeGuards.js';

// A safety limit
Expand Down Expand Up @@ -92,7 +92,7 @@ export const makeInvitationsHelper = (
}

const invitation = await eref;
mustMatch(invitation, InvitationHandleShape);
mustMatch(invitation, InvitationShape);
return invitation;
},
/** @type {(spec: ContractInvitationSpec) => Promise<Invitation>} */
Expand Down

0 comments on commit 20e1779

Please sign in to comment.