@skalenetwork/upgrade-tools 1.0.0-develop.21 → 1.0.0-develop.22

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.
@@ -70,13 +70,7 @@ const URLS = {
70
70
  };
71
71
  // public functions
72
72
  function getSafeTransactionUrl(chainId) {
73
- if (chainId === Network.MAINNET) {
74
- return URLS.safe_transaction[chainId];
75
- }
76
- else if (chainId === Network.RINKEBY) {
77
- return URLS.safe_transaction[chainId];
78
- }
79
- else if (chainId === Network.GOERLI) {
73
+ if (Object.keys(URLS.safe_transaction).includes(chainId.toString())) {
80
74
  return URLS.safe_transaction[chainId];
81
75
  }
82
76
  else {
@@ -85,10 +79,7 @@ function getSafeTransactionUrl(chainId) {
85
79
  }
86
80
  exports.getSafeTransactionUrl = getSafeTransactionUrl;
87
81
  function getSafeRelayUrl(chainId) {
88
- if (chainId === 1) {
89
- return URLS.safe_relay[chainId];
90
- }
91
- else if (chainId === 4) {
82
+ if (Object.keys(URLS.safe_relay).includes(chainId.toString())) {
92
83
  return URLS.safe_relay[chainId];
93
84
  }
94
85
  else {
@@ -196,13 +187,7 @@ function sendSafeTransaction(safe, chainId, safeTx) {
196
187
  exports.sendSafeTransaction = sendSafeTransaction;
197
188
  // private functions
198
189
  function getMultiSendAddress(chainId) {
199
- if (chainId === Network.MAINNET) {
200
- return ADDRESSES.multiSend[chainId];
201
- }
202
- else if (chainId === Network.RINKEBY) {
203
- return ADDRESSES.multiSend[chainId];
204
- }
205
- else if (chainId === Network.GOERLI) {
190
+ if (Object.keys(ADDRESSES.multiSend).includes(chainId.toString())) {
206
191
  return ADDRESSES.multiSend[chainId];
207
192
  }
208
193
  else if ([Network.GANACHE, Network.HARDHAT].includes(chainId)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skalenetwork/upgrade-tools",
3
- "version": "1.0.0-develop.21",
3
+ "version": "1.0.0-develop.22",
4
4
  "description": "Scripts to support upgrades of smart contracts",
5
5
  "files": [
6
6
  "dist/**/*"