Skip to content

Commit fd032ee

Browse files
authored
[fix] parseInt Calls (#875)
* Fix incorrect parseInt calls * Increment package versions
1 parent 44425b6 commit fd032ee

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

packages/fortmatic/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@web3-onboard/fortmatic",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"description": "Fortmatic module for web3-onboard",
55
"module": "dist/index.js",
66
"browser": "dist/index.js",

packages/fortmatic/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function fortmatic(options: APIKey): WalletInit {
1818
const emitter = new EventEmitter()
1919

2020
let instance = new Fortmatic(apiKey, {
21-
chainId: parseInt(chains[0].id, 10),
21+
chainId: parseInt(chains[0].id),
2222
rpcUrl: chains[0].rpcUrl
2323
})
2424

@@ -58,7 +58,7 @@ function fortmatic(options: APIKey): WalletInit {
5858

5959
// re-instantiate instance with new network
6060
instance = new Fortmatic(apiKey, {
61-
chainId: parseInt(chain.id, 10),
61+
chainId: parseInt(chain.id),
6262
rpcUrl: chain.rpcUrl
6363
})
6464

packages/torus/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@web3-onboard/torus",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"description": "Torus module for web3-onboard",
55
"module": "dist/index.js",
66
"browser": "dist/index.js",

packages/torus/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function torus(options?: TorusOptions): WalletInit {
4444
enableLogging,
4545
network: {
4646
host: chain.rpcUrl,
47-
chainId: parseInt(chain.id, 10),
47+
chainId: parseInt(chain.id),
4848
networkName: chain.label
4949
},
5050
showTorusButton: showTorusButton,
@@ -91,7 +91,7 @@ function torus(options?: TorusOptions): WalletInit {
9191

9292
await instance.setProvider({
9393
host: chain.rpcUrl,
94-
chainId: parseInt(chain.id, 10),
94+
chainId: parseInt(chain.id),
9595
networkName: chain.label
9696
})
9797

0 commit comments

Comments
 (0)