Skip to content

Commit

Permalink
chore: use privateArgsShape to fail early with good diagnostic
Browse files Browse the repository at this point in the history
  • Loading branch information
dckc committed May 21, 2024
1 parent 1070719 commit c6dd222
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions contract/src/dao.contract.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ import { prepareRecorderKitMakers } from '@agoric/zoe/src/contractSupport/index.

const { Fail } = assert;

export const meta = harden({
privateArgsShape: {
marshaller: M.remotable('Marshaller'),
storageNode: M.remotable('StorageNode'),
},
});
export const privateArgsShape = meta.privateArgsShape;

// TODO: use shape
// const VoteShape = M.recordOf(M.string(), {
// voteAmount: AmountShape,
Expand Down

0 comments on commit c6dd222

Please sign in to comment.