Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 6cdc53b

Browse files
committedAug 5, 2020
publish 2.1.1-RC.4.5
1 parent 83e233f commit 6cdc53b

File tree

6 files changed

+13
-7
lines changed

6 files changed

+13
-7
lines changed
 

‎CHANGELOG.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
1+
### Release v2.1.1-RC.4.4
2+
- Remove 'www.' from begining of hostnames used to identify dapp
3+
4+
### Release v2.1.1-RC.4.3
5+
- revert Provider.isConnected and Provider.getConnectionState to getters
6+
17
### Release v2.1.1-RC.4.2
28
- add isMEWconnect as provider check
39

4-
510
### Release v2.1.1-RC.4.1
611
- Fix invalid accounting for message ids
712
- Remove error condition on unmatched id received

‎example/app/src/App.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ export default {
289289
console.log(`User's address is ${accounts[0]}`);
290290
this.userAddress = accounts[0];
291291
});
292-
console.log(mewConnect.Provider.isConnected()); // todo remove dev item
292+
console.log(mewConnect.Provider.isConnected); // todo remove dev item
293293
// this.ethereum.enable().then(accounts => {
294294
// console.log(`User's address is ${accounts[0]}`);
295295
// this.userAddress = accounts[0];

‎npm-shrinkwrap.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@myetherwallet/mewconnect-web-client",
33
"homepage": "https://github.com/myetherwallet/MEWconnect-web-client",
4-
"version": "2.1.1-RC.4.2",
4+
"version": "2.1.1-RC.4.5",
55
"main": "./dist/index.js",
66
"module": "./src/index.js",
77
"scripts": {

‎src/connectClient/initiator/MewConnectInitiator.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import debugLogger from 'debug';
44
import { isBrowser } from 'browser-or-node';
55
import { V1endpoint, V2endpoint } from '../config';
6+
import uuid from 'uuid/v4';
67

78
import MewConnectCommon from '../MewConnectCommon';
89
import MewConnectCrypto from '../MewConnectCrypto';
@@ -174,7 +175,7 @@ this.requestIds = [];
174175
this.socketKey = privateKey;
175176
const separator = this.jsonDetails.connectionCodeSeparator;
176177
let qrCodeString =
177-
this.version + separator + privateKey + separator + this.connId + ':name=' + dapp;
178+
this.version + separator + privateKey + separator + this.connId + ':name=' + dapp.replace(/^www\./, '');
178179
if(dapp.includes('myetherwallet.com')){
179180
qrCodeString =
180181
this.version + separator + privateKey + separator + this.connId;

‎src/connectProvider/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,11 @@ export default class Integration extends EventEmitter {
6868
this.popUpHandler.showConnectedNotice();
6969
}
7070

71-
static getConnectionState() {
71+
static get getConnectionState() {
7272
return MEWconnectWallet.getConnectionState();
7373
}
7474

75-
static isConnected() {
75+
static get isConnected() {
7676
return MEWconnectWallet.getConnectionState() !== 'disconnected' && MEWconnectWallet.getConnectionState() !== 'connecting';
7777
}
7878

0 commit comments

Comments
 (0)
Please sign in to comment.