@masa-finance/analytics-sdk
Advanced tools
Comparing version 0.4.0 to 0.4.1
{ | ||
"name": "@masa-finance/analytics-sdk", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"main": "dist/src/index.js", | ||
@@ -25,3 +25,3 @@ "license": "MIT", | ||
"eslint-plugin-simple-import-sort": "^10.0.0", | ||
"prettier": "^3.1.1", | ||
"prettier": "^3.2.2", | ||
"process": "^0.11.10", | ||
@@ -28,0 +28,0 @@ "ts-loader": "^9.5.1", |
@@ -72,5 +72,5 @@ "use strict"; | ||
_a.trys.push([1, 6, , 7]); | ||
return [4 /*yield*/, new ethers_1.providers.Web3Provider(window.ethereum).listAccounts()]; | ||
return [4 /*yield*/, new ethers_1.providers.Web3Provider(window.ethereum).send("eth_requestAccounts", [])]; | ||
case 2: | ||
accounts = _a.sent(); | ||
accounts = (_a.sent()); | ||
if (!(accounts.length > 0)) return [3 /*break*/, 5]; | ||
@@ -122,5 +122,5 @@ exports.globalUserAddress = accounts[0]; | ||
_a.trys.push([2, 5, , 6]); | ||
return [4 /*yield*/, provider.listAccounts()]; | ||
return [4 /*yield*/, provider.send("eth_requestAccounts", [])]; | ||
case 3: | ||
accounts = _a.sent(); | ||
accounts = (_a.sent()); | ||
console.log("Connected account:", accounts[0]); | ||
@@ -127,0 +127,0 @@ console.log("MetaMask provider is now available:", provider); |
{ | ||
"name": "@masa-finance/analytics-sdk", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"main": "dist/src/index.js", | ||
@@ -25,3 +25,3 @@ "license": "MIT", | ||
"eslint-plugin-simple-import-sort": "^10.0.0", | ||
"prettier": "^3.1.1", | ||
"prettier": "^3.2.2", | ||
"process": "^0.11.10", | ||
@@ -28,0 +28,0 @@ "ts-loader": "^9.5.1", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
531429