Skip to content

Commit 8ac3588

Browse files
committed
undo last
1 parent d192b1a commit 8ac3588

File tree

4 files changed

+7
-28
lines changed

4 files changed

+7
-28
lines changed

src/interfaces.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ export interface Initialization {
77
darkMode?: boolean
88
apiUrl?: string
99
hideBranding?: boolean
10-
pollingInterval?: number
1110
}
1211

1312
export interface Subscriptions {
@@ -182,7 +181,6 @@ export interface WalletConnectOptions extends CommonWalletOptions {
182181
[key: string]: string
183182
}
184183
bridge: string
185-
pollingInterval: number
186184
}
187185

188186
export interface TrezorOptions extends CommonWalletOptions {

src/modules/select/wallets/providerEngine.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,9 @@ function createProvider(config: any) {
1212
processMessage,
1313
processPersonalMessage,
1414
signMessage,
15-
signPersonalMessage,
16-
pollingInterval
15+
signPersonalMessage
1716
} = config
1817

19-
console.log("from inside provider engine : " , {pollingInterval})
20-
2118
const idMgmt =
2219
getAccounts &&
2320
new HookedWalletSubprovider({
@@ -33,7 +30,7 @@ function createProvider(config: any) {
3330
rpcUrl: rpcUrl.includes('http') ? rpcUrl : `https://${rpcUrl}`
3431
})
3532

36-
const provider = new Web3ProviderEngine({pollingInterval})
33+
const provider = new Web3ProviderEngine()
3734

3835
provider.addProvider(new SubscriptionSubprovider())
3936
provider.addProvider(new FilterSubprovider())

src/modules/select/wallets/wallet-connect.ts

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,9 @@ function walletConnect(
1717
label,
1818
iconSrc,
1919
svg,
20-
networkId,
21-
pollingInterval
20+
networkId
2221
} = options
2322

24-
console.log({pollingInterval})
25-
2623
if (!infuraKey) {
2724
if (!rpc || !rpc[networkId]) {
2825
throw new Error(
@@ -48,16 +45,12 @@ function walletConnect(
4845
? rpc[networkId]
4946
: `https://${networkName(networkId)}.infura.io/v3/${infuraKey}`
5047

51-
const balanceProvider = createProvider({
52-
rpcUrl,
53-
pollingInterval
54-
})
48+
const balanceProvider = createProvider({ rpcUrl })
5549

5650
const provider = new WalletConnectProvider({
5751
infuraId: infuraKey,
5852
rpc,
59-
bridge,
60-
pollingInterval
53+
bridge
6154
})
6255

6356
provider.autoRefreshOnNetworkChange = false

src/validation.ts

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ export function validateInit(init: Initialization): never | void {
6464
darkMode,
6565
apiUrl,
6666
hideBranding,
67-
pollingInterval,
6867
...otherParams
6968
} = init
7069

@@ -78,8 +77,7 @@ export function validateInit(init: Initialization): never | void {
7877
'walletCheck',
7978
'darkMode',
8079
'apiUrl',
81-
'hideBranding',
82-
'pollingInterval'
80+
'hideBranding'
8381
],
8482
'init'
8583
)
@@ -109,12 +107,6 @@ export function validateInit(init: Initialization): never | void {
109107
type: 'boolean',
110108
optional: true
111109
})
112-
validateType({
113-
name: 'pollingInterval',
114-
value: pollingInterval,
115-
type: 'number',
116-
optional: true
117-
})
118110

119111
validateType({
120112
name: 'subscriptions',
@@ -648,8 +640,7 @@ export function validateWalletInit(
648640
'rpcUri',
649641
'webUri',
650642
'xsUri',
651-
'blockedPopupRedirect',
652-
'pollingInterval'
643+
'blockedPopupRedirect'
653644
],
654645
'walletInitObject'
655646
)

0 commit comments

Comments
 (0)