Skip to content

Commit

Permalink
fix: Update auth_app params.
Browse files Browse the repository at this point in the history
After 0.6.0 safe-nodejs update, port is no longer required (and should be a string anyway).

This fixes #1119
  • Loading branch information
joshuef committed Dec 17, 2019
1 parent afc5f2a commit 611e7d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ export const initAuthed = async (): Safe => {
const authCredentials = await safeBrowserAppObject.auth_app(
APP_ID,
APP_NAME,
APP_VENDOR,
41805
APP_VENDOR
);

await safeBrowserAppObject.connect( APP_ID, authCredentials );
Expand Down
4 changes: 3 additions & 1 deletion app/extensions/safe/test/utils/requestManagement.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ jest.mock( 'electron', () => {
const app = {
getPath: jest.fn( () => {
return '/Somewhere/Electron.app';
} )
} ),
getName: jest.fn( () => 'Safe Browser' ),
getVersion: jest.fn( () => 'v0.42.0' )
};

return {
Expand Down

0 comments on commit 611e7d5

Please sign in to comment.