diff --git a/packages/snaps-rpc-methods/src/permitted/setState.ts b/packages/snaps-rpc-methods/src/permitted/setState.ts index f2e7392f04..4f2e8907dd 100644 --- a/packages/snaps-rpc-methods/src/permitted/setState.ts +++ b/packages/snaps-rpc-methods/src/permitted/setState.ts @@ -248,5 +248,5 @@ export function set( // This should never be reached. /* istanbul ignore next */ - return {}; + throw new Error('Unexpected error while setting the state.'); }