Skip to content

Commit

Permalink
Remove console.error, remove empty string check
Browse files Browse the repository at this point in the history
  • Loading branch information
tolgahan-arikan committed Jan 16, 2024
1 parent e01460e commit 8136603
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/provider/src/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@ let sequenceWalletProvider: SequenceProvider | undefined
* @throws Error if projectAccessKey is not provided, empty string or is not string.
*/
export const initWallet = (projectAccessKey: string, partialConfig?: Partial<ProviderConfig>) => {
if (!projectAccessKey || projectAccessKey === '' || typeof projectAccessKey !== 'string') {
console.error('Please pass a projectAccessKey in initWallet. (You can get one on sequence.build)')
if (!projectAccessKey || typeof projectAccessKey !== 'string') {
throw new Error('Please pass a projectAccessKey in initWallet.')
}

Expand Down

0 comments on commit 8136603

Please sign in to comment.