Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
sidmorizon committed Dec 25, 2024
1 parent fbc9392 commit 28ebb61
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
1 change: 1 addition & 0 deletions packages/kit-bg/src/providers/ProviderApiEthereum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ import type {
IJsBridgeMessagePayload,
IJsonRpcRequest,
} from '@onekeyfe/cross-inpage-provider-types';
import errorUtils from '@onekeyhq/shared/src/errors/utils/errorUtils';

export type ISwitchEthereumChainParameter = {
chainId: string;
Expand Down
2 changes: 1 addition & 1 deletion packages/kit/src/views/DAppConnection/dappTest.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@

async function requestSign() {
try {
const message = '请签名以验证您的身份';
const message = '请签名以验证您的身份776655';
const signature = await window.ethereum.request({
method: 'personal_sign',
params: [message, account],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { useEffect, useRef } from 'react';

import type { IAccountSelectorSelectedAccount } from '@onekeyhq/kit-bg/src/dbs/simple/entity/SimpleDbEntityAccountSelector';
import type { IAccountSelectorActiveAccountInfo } from '@onekeyhq/kit/src/states/jotai/contexts/accountSelector';
import {
useActiveAccount,
useSelectedAccount,
} from '@onekeyhq/kit/src/states/jotai/contexts/accountSelector';
import type { IAccountSelectorSelectedAccount } from '@onekeyhq/kit-bg/src/dbs/simple/entity/SimpleDbEntityAccountSelector';

import { useDebounce } from '../../../hooks/useDebounce';

export type IHandleAccountChangedParams = {
Expand Down
11 changes: 9 additions & 2 deletions packages/shared/src/eventBus/appEventBus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -326,8 +326,15 @@ class AppEventBus extends CrossEventEmitter {
defaultLogger.app.eventBus.emitToSelf({
eventName: type,
});
// @ts-ignore
delete payload.$$isRemoteEvent;
try {
// @ts-ignore
if (payload?.$$isRemoteEvent) {
// @ts-ignore
delete payload.$$isRemoteEvent;
}
} catch (e) {
// ignore
}
this.emitToSelf(type, payload);
}
void this.emitToRemote(type, payload);
Expand Down

0 comments on commit 28ebb61

Please sign in to comment.