Skip to content

Commit

Permalink
v16.2.5: required namespaces can be optional
Browse files Browse the repository at this point in the history
  • Loading branch information
10xSebastian committed Sep 15, 2023
1 parent cb6cc7d commit cd480e1
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 13 deletions.
6 changes: 4 additions & 2 deletions dist/esm/index.evm.js
Original file line number Diff line number Diff line change
Expand Up @@ -1351,8 +1351,10 @@ const getWalletConnectV2Config = (walletName)=>{
chains: [`eip155:1`],
};
}
requiredNamespaces['eip155'].methods = methods;
requiredNamespaces['eip155'].events = events;
if(requiredNamespaces['eip155']) {
requiredNamespaces['eip155'].methods = methods;
requiredNamespaces['eip155'].events = events;
}

let optionalNamespaces = {};
if(_optionalChain$2([CONFIGURATIONS, 'access', _7 => _7[walletName], 'optionalAccess', _8 => _8.optionalNamespaces])) {
Expand Down
6 changes: 4 additions & 2 deletions dist/esm/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions dist/umd/index.evm.js
Original file line number Diff line number Diff line change
Expand Up @@ -1354,8 +1354,10 @@
chains: [`eip155:1`],
};
}
requiredNamespaces['eip155'].methods = methods;
requiredNamespaces['eip155'].events = events;
if(requiredNamespaces['eip155']) {
requiredNamespaces['eip155'].methods = methods;
requiredNamespaces['eip155'].events = events;
}

let optionalNamespaces = {};
if(_optionalChain$2([CONFIGURATIONS, 'access', _7 => _7[walletName], 'optionalAccess', _8 => _8.optionalNamespaces])) {
Expand Down
6 changes: 4 additions & 2 deletions dist/umd/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.evm.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@depay/web3-wallets-evm",
"moduleName": "Web3Wallets",
"version": "16.2.4",
"version": "16.2.5",
"description": "One-Stop-Shop JavaScript library to integrate various web3 crypto wallets and multiple blockchains at once with a single interface.",
"main": "dist/umd/index.evm.js",
"module": "dist/esm/index.evm.js",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@depay/web3-wallets",
"moduleName": "Web3Wallets",
"version": "16.2.4",
"version": "16.2.5",
"description": "One-Stop-Shop JavaScript library to integrate various web3 crypto wallets and multiple blockchains at once with a single interface.",
"main": "dist/umd/index.js",
"module": "dist/esm/index.js",
Expand Down
2 changes: 1 addition & 1 deletion package.solana.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@depay/web3-wallets-solana",
"moduleName": "Web3Wallets",
"version": "16.2.4",
"version": "16.2.5",
"description": "One-Stop-Shop JavaScript library to integrate various web3 crypto wallets and multiple blockchains at once with a single interface.",
"main": "dist/umd/index.solana.js",
"module": "dist/esm/index.solana.js",
Expand Down
6 changes: 4 additions & 2 deletions src/wallets/WalletConnectV2.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,10 @@ const getWalletConnectV2Config = (walletName)=>{
chains: [`eip155:1`],
}
}
requiredNamespaces['eip155'].methods = methods
requiredNamespaces['eip155'].events = events
if(requiredNamespaces['eip155']) {
requiredNamespaces['eip155'].methods = methods
requiredNamespaces['eip155'].events = events
}

let optionalNamespaces = {}
if(CONFIGURATIONS[walletName]?.optionalNamespaces) {
Expand Down

0 comments on commit cd480e1

Please sign in to comment.