Skip to content

Commit fa88d41

Browse files
Merge pull request #566 from blocknative/release/1.26.1
Release/1.26.1
2 parents ed08b6d + 67c13f9 commit fa88d41

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bnc-onboard",
3-
"version": "1.26.0",
3+
"version": "1.26.1",
44
"description": "Onboard users to web3 by allowing them to select a wallet, get that wallet ready to transact and have access to synced wallet state.",
55
"keywords": [
66
"ethereum",

src/interfaces.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,7 @@ export interface TorusOptions extends CommonWalletOptions {
333333
integrity?: IntegrityParams
334334
whiteLabel?: WhiteLabelParams
335335
loginMethod?: 'google' | 'facebook' | 'twitch' | 'reddit' | 'discord' | string
336+
rpcUrl?: string
336337
}
337338

338339
//#endregion torus

src/modules/select/wallets/torus.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ function torus(options: TorusOptions & { networkId: number }): WalletModule {
2020
showTorusButton,
2121
integrity,
2222
whiteLabel,
23-
loginMethod
23+
loginMethod,
24+
rpcUrl
2425
} = options
2526

2627
return {
@@ -41,7 +42,7 @@ function torus(options: TorusOptions & { networkId: number }): WalletModule {
4142
buildEnv, // default: production
4243
enableLogging, // default: false
4344
network: {
44-
host: networkName(networkId), // default: mainnet
45+
host: rpcUrl || networkName(networkId), // default: mainnet
4546
chainId: networkId, // default: 1
4647
networkName: `${networkName(networkId)} Network` // default: Main Ethereum Network
4748
},

0 commit comments

Comments
 (0)