Skip to content

Commit

Permalink
fix: issuer
Browse files Browse the repository at this point in the history
  • Loading branch information
hcote committed Jan 8, 2025
1 parent 50e775f commit a7988c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export class ThirdPartyWalletsModule extends BaseModule {
}

private web3modalIsLoggedIn() {
return createPromiEvent<boolean>((resolve) => {
return createPromiEvent<boolean>(resolve => {
// @ts-expect-error Property 'web3modal' does not exist on type 'SDKBase'.
const walletStatus = this.sdk.web3modal.modal.getStatus();
if (walletStatus === 'connected') {
Expand Down Expand Up @@ -125,7 +125,7 @@ export class ThirdPartyWalletsModule extends BaseModule {
return {
publicAddress: userAddress as string,
email: null,
issuer: `$did:ethr:${userAddress}`,
issuer: `did:ethr:${userAddress}`,
phoneNumber: null,
isMfaEnabled: false,
recoveryFactors: [] as [],
Expand Down Expand Up @@ -164,7 +164,7 @@ export class ThirdPartyWalletsModule extends BaseModule {
}

private web3modalLogout(): PromiEvent<boolean> {
return createPromiEvent<boolean>(async (resolve) => {
return createPromiEvent<boolean>(async resolve => {
try {
// @ts-expect-error Property 'web3modal' does not exist on type 'SDKBase'.
await this.sdk.web3modal.modal.disconnect();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ describe('format web3modal getinfo response', () => {
expect(response).toEqual({
publicAddress: '0x1234567890',
email: null,
issuer: '$did:ethr:0x1234567890',
issuer: 'did:ethr:0x1234567890',
phoneNumber: null,
isMfaEnabled: false,
recoveryFactors: [],
Expand Down

0 comments on commit a7988c6

Please sign in to comment.