Skip to content

Commit

Permalink
Fix review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrtenz committed Nov 24, 2022
1 parent bd9635a commit 3d069ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -24,7 +24,7 @@ describe('endowment:rpc', () => {
});

describe('validator', () => {
it('throws if the caveat is not a single "transactionOrigin"', () => {
it('throws if the caveat is not a single "rpcOrigin"', () => {
const specification = rpcEndowmentBuilder.specificationBuilder({});

expect(() =>
Expand Down
2 changes: 1 addition & 1 deletion packages/snaps-utils/src/json-rpc.ts
Expand Up @@ -13,7 +13,7 @@ export const RpcOriginsStruct = refine(
dapps: optional(boolean()),
snaps: optional(boolean()),
}),
'RPC endpoints',
'RPC origins',
(value) => {
if (!Object.values(value).some(Boolean)) {
throw new Error('Must specify at least one JSON-RPC origin');
Expand Down

0 comments on commit 3d069ae

Please sign in to comment.