@ututrust/web-components 1.1.22 → 1.1.23
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.
- package/dist/index.js +17 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -34217,6 +34217,18 @@
|
|
|
34217
34217
|
mainnet: {
|
|
34218
34218
|
chainId: 1
|
|
34219
34219
|
},
|
|
34220
|
+
matic: {
|
|
34221
|
+
chainId: 137,
|
|
34222
|
+
// 80001
|
|
34223
|
+
chainName: "Polygon",
|
|
34224
|
+
nativeCurrency: {
|
|
34225
|
+
name: "MATIC",
|
|
34226
|
+
symbol: "MATIC",
|
|
34227
|
+
decimals: 18
|
|
34228
|
+
},
|
|
34229
|
+
rpcUrls: ["https://polygon-rpc.com"],
|
|
34230
|
+
blockExplorerUrls: ["https://polygonscan.com"]
|
|
34231
|
+
},
|
|
34220
34232
|
mumbai: {
|
|
34221
34233
|
chainId: 80001,
|
|
34222
34234
|
// 80001
|
|
@@ -34233,7 +34245,9 @@
|
|
|
34233
34245
|
chainId: 5
|
|
34234
34246
|
}
|
|
34235
34247
|
};
|
|
34236
|
-
var
|
|
34248
|
+
var getDefaultNetwork = function getDefaultNetwork() {
|
|
34249
|
+
return networks[config.production ? 'matic' : 'mumbai'];
|
|
34250
|
+
};
|
|
34237
34251
|
|
|
34238
34252
|
function EndorsementForm(props) {
|
|
34239
34253
|
var _window, _window2;
|
|
@@ -34335,8 +34349,8 @@
|
|
|
34335
34349
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
34336
34350
|
// @ts-ignore
|
|
34337
34351
|
provider = getProvider();
|
|
34338
|
-
network = String(props[ATTR_ENDORSEMENT_NETWORK]).toLowerCase().trim()
|
|
34339
|
-
selectedNetwork = networks[network] ||
|
|
34352
|
+
network = String(props[ATTR_ENDORSEMENT_NETWORK]).toLowerCase().trim();
|
|
34353
|
+
selectedNetwork = networks[network] || getDefaultNetwork();
|
|
34340
34354
|
_context3.prev = 3;
|
|
34341
34355
|
_context3.next = 6;
|
|
34342
34356
|
return requestNetworkChange(provider, selectedNetwork);
|