- Updated WalletStore to manage localStorage and handle storage events more effectively. - Introduced mockAccountsSubscribe in constants for better account subscription handling. - Removed unnecessary storage subscription from InjectionConfig. - Enhanced Wallet class to utilize new account and metadata management methods.
7 lines
322 B
TypeScript
7 lines
322 B
TypeScript
import type { InjectedExtension } from "@polkadot/extension-inject/types";
|
|
|
|
export const VARAN_WALLET_LS_KEY = 'VARAN_WALLET';
|
|
export const mockAccountsSubscribe: InjectedExtension['accounts']['subscribe'] = () => {
|
|
console.warn('Accounts subscribe does not currently support in Varan Wallet');
|
|
return () => {};
|
|
}; |