@solana/wallet-adapter-sollet
Advanced tools
Comparing version 0.5.1 to 0.5.2
@@ -19,3 +19,3 @@ "use strict"; | ||
class SolletWalletAdapter extends wallet_adapter_base_1.BaseSignerWalletAdapter { | ||
constructor(config) { | ||
constructor(config = {}) { | ||
super(); | ||
@@ -31,4 +31,4 @@ this._disconnected = () => { | ||
}; | ||
this._provider = (config === null || config === void 0 ? void 0 : config.provider) || 'https://www.sollet.io'; | ||
this._network = (config === null || config === void 0 ? void 0 : config.network) || wallet_adapter_base_1.WalletAdapterNetwork.Mainnet; | ||
this._provider = config.provider || 'https://www.sollet.io'; | ||
this._network = config.network || wallet_adapter_base_1.WalletAdapterNetwork.Mainnet; | ||
this._connecting = false; | ||
@@ -35,0 +35,0 @@ this._wallet = null; |
{ | ||
"name": "@solana/wallet-adapter-sollet", | ||
"version": "0.5.1", | ||
"version": "0.5.2", | ||
"author": "Solana Maintainers <maintainers@solana.foundation>", | ||
@@ -12,3 +12,4 @@ "repository": "https://github.com/solana-labs/wallet-adapter", | ||
"lib", | ||
"src" | ||
"src", | ||
"LICENSE" | ||
], | ||
@@ -19,7 +20,7 @@ "publishConfig": { | ||
"scripts": { | ||
"clean": "rm -rf lib/*", | ||
"clean": "shx rm -rf lib/*", | ||
"build": "yarn clean && tsc" | ||
}, | ||
"peerDependencies": { | ||
"@solana/wallet-adapter-base": "^0.5.1", | ||
"@solana/wallet-adapter-base": "^0.5.2", | ||
"@solana/web3.js": "^1.20.0" | ||
@@ -31,6 +32,6 @@ }, | ||
"devDependencies": { | ||
"@solana/wallet-adapter-base": "^0.5.1", | ||
"@solana/wallet-adapter-base": "^0.5.2", | ||
"@solana/web3.js": "^1.20.0" | ||
}, | ||
"gitHead": "4e46f44d180bda0f9ca4d20e48f62759a9af4c2c" | ||
"gitHead": "f1c15aa0c22d2fa6a566bc095f05e4fde4745230" | ||
} |
@@ -28,6 +28,6 @@ import Wallet from '@project-serum/sol-wallet-adapter'; | ||
constructor(config?: SolletWalletAdapterConfig) { | ||
constructor(config: SolletWalletAdapterConfig = {}) { | ||
super(); | ||
this._provider = config?.provider || 'https://www.sollet.io'; | ||
this._network = config?.network || WalletAdapterNetwork.Mainnet; | ||
this._provider = config.provider || 'https://www.sollet.io'; | ||
this._network = config.network || WalletAdapterNetwork.Mainnet; | ||
this._connecting = false; | ||
@@ -34,0 +34,0 @@ this._wallet = null; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
29637