Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
CiprianDraghici committed Aug 29, 2024
1 parent df0f20b commit 9a9f281
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/core/methods/login/login.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ async function loginWithoutNativeToken(provider: IProvider) {
callbackUrl: getCallbackUrl()
});

const address = provider.getAddress?.();
const address = await provider.getAddress?.();

if (!address) {
throw new Error('Address not found');
Expand Down
2 changes: 1 addition & 1 deletion src/core/providers/ProviderFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export class ProviderFactory {
createdProvider = provider as unknown as IProvider;

createdProvider.getAddress = () => {
return provider.account.address;
return Promise.resolve(provider.account.address);
};

createdProvider.getTokenLoginSignature = () => {
Expand Down
2 changes: 1 addition & 1 deletion src/core/providers/helpers/emptyProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export class EmptyProvider implements IProvider {
);
}

getAddress(): string | undefined {
async getAddress(): Promise<string | undefined> {
throw new Error(notInitializedError('getAddress'));
}

Expand Down

0 comments on commit 9a9f281

Please sign in to comment.