Skip to content

Commit

Permalink
Merge branch 'main' into add/export-seed-phrase
Browse files Browse the repository at this point in the history
  • Loading branch information
juliangruber committed Jan 17, 2024
2 parents d9ec39e + 54d69ad commit a8a1a22
Show file tree
Hide file tree
Showing 4 changed files with 14,085 additions and 9,635 deletions.
2 changes: 1 addition & 1 deletion main/telemetry.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ async function setup () {
}
Sentry.captureException(err)
})
}, 10_000).unref()
}, 10 * 60 * 1000).unref()
}

module.exports = {
Expand Down
11 changes: 7 additions & 4 deletions main/wallet-backend.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,12 @@ class WalletBackend {
} else {
({ seed, isNew } = await this.getSeedPhrase())
}
this.provider = new ethers.providers.JsonRpcProvider(
'https://api.node.glif.io/rpc/v0'
)
this.provider = new ethers.providers.JsonRpcProvider({
url: 'https://api.node.glif.io/rpc/v0',
headers: {
Authorization: 'Bearer VOeqfEFbUjr/vnvYSwbohKuilNkdmD/4tI3gXzV7f3g='
}
})
this.signer = ethers.Wallet.fromMnemonic(seed).connect(this.provider)
this.address = this.signer.address
this.addressDelegated = delegatedFromEthAddress(this.address, CoinType.MAIN)
Expand All @@ -68,7 +71,7 @@ class WalletBackend {
this.provider
).connect(this.signer)
this.meridian = new ethers.Contract(
'0xaaef78eaf86dcf34f275288752e892424dda9341',
'0x811765AccE724cD5582984cb35f5dE02d587CA12',
await fs.readFile(join(__dirname, 'meridian-abi.json'), 'utf8'),
this.provider
)
Expand Down
Loading

0 comments on commit a8a1a22

Please sign in to comment.