Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,9 @@ export function createSpendPermissionTypedDataWithSeconds(

// Runtime check to prevent misuse
if (process.env.NODE_ENV === 'production') {
console.warn(
'⚠️ createSpendPermissionTypedDataWithSeconds is being used. ' +
'This function is intended for testing purposes only.'
throw new Error(
'createSpendPermissionTypedDataWithSeconds is intended for testing purposes only. ' +
'Use createSpendPermissionTypedData for production.'
);
}

Expand Down