@depay/web3-wallets-evm 18.0.9 → 18.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -425,9 +425,6 @@ class WindowEthereum {
425
425
  if(typeof message === 'object') {
426
426
  let provider = this.getProvider();
427
427
  let account = await this.account();
428
- if((await this.connectedTo(Blockchains.findByNetworkId(message.domain.chainId).name)) === false) {
429
- throw({ code: 'WRONG_NETWORK' })
430
- }
431
428
  let signature = await provider.request({
432
429
  method: 'eth_signTypedData_v4',
433
430
  params: [account, message],
@@ -1601,9 +1598,6 @@ class WalletLink {
1601
1598
  if(typeof message === 'object') {
1602
1599
  let provider = this.connector;
1603
1600
  let account = await this.account();
1604
- if((await this.connectedTo(Blockchains.findByNetworkId(message.domain.chainId).name)) === false) {
1605
- throw({ code: 'WRONG_NETWORK' })
1606
- }
1607
1601
  let signature = await provider.request({
1608
1602
  method: 'eth_signTypedData_v4',
1609
1603
  params: [account, message],
package/dist/esm/index.js CHANGED
@@ -696,9 +696,6 @@ class WindowEthereum {
696
696
  if(typeof message === 'object') {
697
697
  let provider = this.getProvider();
698
698
  let account = await this.account();
699
- if((await this.connectedTo(Blockchains.findByNetworkId(message.domain.chainId).name)) === false) {
700
- throw({ code: 'WRONG_NETWORK' })
701
- }
702
699
  let signature = await provider.request({
703
700
  method: 'eth_signTypedData_v4',
704
701
  params: [account, message],
@@ -2200,9 +2197,6 @@ class WalletLink {
2200
2197
  if(typeof message === 'object') {
2201
2198
  let provider = this.connector;
2202
2199
  let account = await this.account();
2203
- if((await this.connectedTo(Blockchains.findByNetworkId(message.domain.chainId).name)) === false) {
2204
- throw({ code: 'WRONG_NETWORK' })
2205
- }
2206
2200
  let signature = await provider.request({
2207
2201
  method: 'eth_signTypedData_v4',
2208
2202
  params: [account, message],
@@ -429,9 +429,6 @@
429
429
  if(typeof message === 'object') {
430
430
  let provider = this.getProvider();
431
431
  let account = await this.account();
432
- if((await this.connectedTo(Blockchains__default['default'].findByNetworkId(message.domain.chainId).name)) === false) {
433
- throw({ code: 'WRONG_NETWORK' })
434
- }
435
432
  let signature = await provider.request({
436
433
  method: 'eth_signTypedData_v4',
437
434
  params: [account, message],
@@ -1605,9 +1602,6 @@
1605
1602
  if(typeof message === 'object') {
1606
1603
  let provider = this.connector;
1607
1604
  let account = await this.account();
1608
- if((await this.connectedTo(Blockchains__default['default'].findByNetworkId(message.domain.chainId).name)) === false) {
1609
- throw({ code: 'WRONG_NETWORK' })
1610
- }
1611
1605
  let signature = await provider.request({
1612
1606
  method: 'eth_signTypedData_v4',
1613
1607
  params: [account, message],
package/dist/umd/index.js CHANGED
@@ -699,9 +699,6 @@
699
699
  if(typeof message === 'object') {
700
700
  let provider = this.getProvider();
701
701
  let account = await this.account();
702
- if((await this.connectedTo(Blockchains__default['default'].findByNetworkId(message.domain.chainId).name)) === false) {
703
- throw({ code: 'WRONG_NETWORK' })
704
- }
705
702
  let signature = await provider.request({
706
703
  method: 'eth_signTypedData_v4',
707
704
  params: [account, message],
@@ -2203,9 +2200,6 @@
2203
2200
  if(typeof message === 'object') {
2204
2201
  let provider = this.connector;
2205
2202
  let account = await this.account();
2206
- if((await this.connectedTo(Blockchains__default['default'].findByNetworkId(message.domain.chainId).name)) === false) {
2207
- throw({ code: 'WRONG_NETWORK' })
2208
- }
2209
2203
  let signature = await provider.request({
2210
2204
  method: 'eth_signTypedData_v4',
2211
2205
  params: [account, message],
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@depay/web3-wallets-evm",
3
3
  "moduleName": "Web3Wallets",
4
- "version": "18.0.9",
4
+ "version": "18.0.10",
5
5
  "description": "One-Stop-Shop JavaScript library to integrate various web3 crypto wallets and multiple blockchains at once with a single interface.",
6
6
  "main": "dist/umd/index.evm.js",
7
7
  "module": "dist/esm/index.evm.js",