Skip to content

Commit

Permalink
Add @ethereumjs/common, patch to use node-fetch in ipfs-utils (#595)
Browse files Browse the repository at this point in the history
  • Loading branch information
mholtzman authored Oct 11, 2021
1 parent 3c44651 commit 58025d0
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 100 deletions.
9 changes: 8 additions & 1 deletion main/nebula/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
const ethProvider = require('eth-provider')
// delete the Electron version while requiring Nebula. this allows ipfs-utils to use
// node-fetch instead of electron-fetch
const electron = process.versions.electron
delete process.versions.electron

const nebula = require('nebula')
process.versions.electron = electron

const ethProvider = require('eth-provider')

const authToken = process.env.NEBULA_AUTH_TOKEN ? process.env.NEBULA_AUTH_TOKEN + '@' : ''
const pylonUrl = `https://${authToken}@ipfs.nebula.land`
Expand Down
119 changes: 20 additions & 99 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
"license": "GPL-3.0",
"dependencies": {
"@aragon/wrapper": "5.4.0",
"@ethereumjs/common": "2.5.0",
"@ethereumjs/tx": "3.3.2",
"@ethersproject/abi": "5.4.1",
"@ethersproject/hash": "5.4.0",
Expand Down

0 comments on commit 58025d0

Please sign in to comment.