Skip to content
This repository has been archived by the owner on Aug 9, 2021. It is now read-only.

Commit

Permalink
fix: 3id/ipfs conflicts with 3id-connect fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zachferland committed May 28, 2020
1 parent 5341310 commit 3513499
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/threeIdConnect.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,12 @@ class ThreeIdConnect {
document.body.appendChild(this.iframe)
}

// Just passing ref to threeId and address during migration
async connect (provider, ThreeId) {
// Just passing ref to threeId and ipfs during migration
async connect (provider, ThreeId, ipfs) {
// assumes eth provider during migration
this.provider = provider
this.ThreeId = ThreeId
this.ipfs = ipfs
// after migration, can detect different provdier to create authProvider
this.authProvider = new EthereumAuthProvider(provider)
}
Expand Down Expand Up @@ -84,7 +85,7 @@ class ThreeIdConnect {
*/
async _getThreeId (address) {
if(!this._threeId) {
this._threeId = await this.ThreeId.getIdFromEthAddress(address, this.provider, fakeIpfs, undefined, {})
this._threeId = await this.ThreeId.getIdFromEthAddress(address, this.provider, this.ipfs, undefined, {})
}
return this._threeId
}
Expand Down

0 comments on commit 3513499

Please sign in to comment.