Skip to content

Commit

Permalink
update walletSelectorModules type to support the new wallet selector …
Browse files Browse the repository at this point in the history
…core function
  • Loading branch information
wpdas committed Oct 11, 2024
1 parent 0ae7850 commit c0d3275
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@wpdas/naxios",
"version": "2.2.2",
"version": "2.2.3",
"description": "Promise based NEAR Contract and NEAR Wallet client for browser",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand Down
5 changes: 4 additions & 1 deletion src/managers/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,10 @@ export type BuildViewInterfaceConfig = {
export type NaxiosConstructor = Pick<ContractManagerConfig, 'rpcNodeUrl'> & {
contractId: string
network: Network
walletSelectorModules?: WalletModuleFactory[]
// INFO: included since version 2.2.3 to support the new WalletModuleFactory<Type> type
walletSelectorModules?: any[]
// INFO: removed since version 2.2.3 (version 2.2.1 and 2.2.1 was using a different version of this WalletModuleFactory)
// walletSelectorModules?: WalletModuleFactory[]
// cache?: MemoryCache | StorageCache
onInit?: () => void
}
Expand Down

0 comments on commit c0d3275

Please sign in to comment.