@openocean.finance/wallet 1.5.19 → 1.5.20
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.
|
@@ -109,7 +109,7 @@ var WalletConnect = /** @class */ (function (_super) {
|
|
|
109
109
|
WalletConnect.prototype.requestConnect = function (chainId, config) {
|
|
110
110
|
if (chainId === void 0) { chainId = 1; }
|
|
111
111
|
return __awaiter(this, void 0, void 0, function () {
|
|
112
|
-
var provider, currentChainId, address;
|
|
112
|
+
var qrModalOptions, provider, currentChainId, address;
|
|
113
113
|
return __generator(this, function (_a) {
|
|
114
114
|
switch (_a.label) {
|
|
115
115
|
case 0:
|
|
@@ -117,10 +117,16 @@ var WalletConnect = /** @class */ (function (_super) {
|
|
|
117
117
|
// throw new Error("infuraId not set");
|
|
118
118
|
// }
|
|
119
119
|
console.log('chainId', chainId);
|
|
120
|
+
qrModalOptions = {
|
|
121
|
+
themeVariables: {
|
|
122
|
+
'--wcm-z-index': '99999',
|
|
123
|
+
}
|
|
124
|
+
};
|
|
120
125
|
return [4 /*yield*/, ethereum_provider_1.default.init({
|
|
121
|
-
projectId: '
|
|
126
|
+
projectId: 'c1ca7adc83e89c7e7848440702f28f38',
|
|
122
127
|
chains: [chainId],
|
|
123
|
-
showQrModal: true
|
|
128
|
+
showQrModal: true,
|
|
129
|
+
qrModalOptions: qrModalOptions
|
|
124
130
|
})];
|
|
125
131
|
case 1:
|
|
126
132
|
provider = _a.sent();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openocean.finance/wallet",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.20",
|
|
4
4
|
"description": "A multi-chain wallets manager",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"@terra-money/terra.js": "3.0.8",
|
|
62
62
|
"@uauth/js": "^2.4.0",
|
|
63
63
|
"@walletconnect/ethereum-provider": "^2.8.6",
|
|
64
|
-
"@walletconnect/modal": "^2.6.
|
|
64
|
+
"@walletconnect/modal": "^2.6.1",
|
|
65
65
|
"buffer": "^6.0.3",
|
|
66
66
|
"fs": "^0.0.1-security",
|
|
67
67
|
"near-api-js": "^0.44.2",
|