From ea7510a8e7ea62fcc01ae8f01deb4544f917ec21 Mon Sep 17 00:00:00 2001 From: itsayushi Date: Thu, 4 Jan 2024 12:55:03 +0530 Subject: [PATCH] borderradius and mantle url updated --- CHANGELOG.md | 7 ++++++- dist/widgetManager.js | 2 +- package-lock.json | 4 ++-- package.json | 2 +- src/networks.ts | 6 +++--- src/widgetManager.ts | 1 + 6 files changed, 14 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3687f69..b03a71e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -98,4 +98,9 @@ ### 2.0.8 (2023-12-27) -* Fixed Widget URL \ No newline at end of file +* Fixed Widget URL + +### 2.0.9 (2024-04-01) + +* Added widget border radius +* Updated Mantle RPC URL diff --git a/dist/widgetManager.js b/dist/widgetManager.js index 5350628..58e3e60 100644 --- a/dist/widgetManager.js +++ b/dist/widgetManager.js @@ -100,8 +100,8 @@ class WidgetManager { this.iframe.style.width = "360px"; this.iframe.style.right = "10px"; this.iframe.style.top = "10px"; - this.iframe.style.position = "absolute"; this.iframe.style.borderRadius = "20px"; + this.iframe.style.position = "absolute"; document.body.appendChild(this.iframe); try { const connection = Penpal.connectToChild({ diff --git a/package-lock.json b/package-lock.json index 0bc97c2..ee996a6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@getsafle/safle-keyless-js", - "version": "2.0.8", + "version": "2.0.9", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@getsafle/safle-keyless-js", - "version": "2.0.8", + "version": "2.0.9", "license": "ISC", "dependencies": { "ethereumjs-util": "^5.2.0", diff --git a/package.json b/package.json index 7ae2d5a..e3356e8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@getsafle/safle-keyless-js", - "version": "2.0.8", + "version": "2.0.9", "description": "", "main": "dist/index.js", "scripts": { diff --git a/src/networks.ts b/src/networks.ts index 06ce0f0..c698f9b 100644 --- a/src/networks.ts +++ b/src/networks.ts @@ -58,7 +58,7 @@ const networks: { [key: string]: INetwork } = { chainId: "111", }, mantle: { - nodeUrl: "http://rpc.mantle.xyz/", + nodeUrl: "https://rpc.ankr.com/mantle", chainId: "5000", }, mantletestnet: { @@ -88,7 +88,7 @@ const networks: { [key: string]: INetwork } = { }, "80001": { nodeUrl: - "https://polygon-mumbai.infura.io/v3/814228beb1ff4d5991988329e57c349c", + "https://polygon-mumbai.infura.io/v3/eff77f64ebfd4153b083c7867ccf115d", chainId: "80001", }, "10": { @@ -120,7 +120,7 @@ const networks: { [key: string]: INetwork } = { chainId: "111", }, "5000": { - nodeUrl: "http://rpc.mantle.xyz/", + nodeUrl: "https://rpc.ankr.com/mantle", chainId: "5000", }, "5001": { diff --git a/src/widgetManager.ts b/src/widgetManager.ts index 666b966..30ace71 100644 --- a/src/widgetManager.ts +++ b/src/widgetManager.ts @@ -76,6 +76,7 @@ export default class WidgetManager { this.iframe.style.width = "360px"; this.iframe.style.right = "10px"; this.iframe.style.top = "10px"; + this.iframe.style.borderRadius = "20px"; this.iframe.style.position = "absolute"; document.body.appendChild(this.iframe);