mirror of https://github.com/embarklabs/embark.git
Merge pull request #624 from embark-framework/use_package_web3
remove custom web3 js; use packaged one instead
This commit is contained in:
commit
4d473f0b34
File diff suppressed because one or more lines are too long
|
@ -292,7 +292,7 @@ class CodeGenerator {
|
||||||
function getWeb3Location(next) {
|
function getWeb3Location(next) {
|
||||||
self.events.request("version:get:web3", function(web3Version) {
|
self.events.request("version:get:web3", function(web3Version) {
|
||||||
if (web3Version === "1.0.0-beta") {
|
if (web3Version === "1.0.0-beta") {
|
||||||
return next(null, fs.embarkPath("js/web3-1.0.min.js"));
|
return next(null, fs.embarkPath("node_modules/web3"));
|
||||||
} else {
|
} else {
|
||||||
self.events.request("version:getPackageLocation", "web3", web3Version, function(err, location) {
|
self.events.request("version:getPackageLocation", "web3", web3Version, function(err, location) {
|
||||||
return next(null, fs.dappPath(location));
|
return next(null, fs.dappPath(location));
|
||||||
|
@ -352,7 +352,7 @@ class CodeGenerator {
|
||||||
function getWeb3Location(next) {
|
function getWeb3Location(next) {
|
||||||
self.events.request("version:get:web3", function(web3Version) {
|
self.events.request("version:get:web3", function(web3Version) {
|
||||||
if (web3Version === "1.0.0-beta") {
|
if (web3Version === "1.0.0-beta") {
|
||||||
return next(null, utils.joinPath(fs.embarkPath("js/web3-1.0.min.js")));
|
return next(null, utils.joinPath(fs.embarkPath("node_modules/web3")));
|
||||||
} else {
|
} else {
|
||||||
self.events.request("version:getPackageLocation", "web3", web3Version, function(err, location) {
|
self.events.request("version:getPackageLocation", "web3", web3Version, function(err, location) {
|
||||||
return next(null, fs.dappPath(location));
|
return next(null, fs.dappPath(location));
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
"config": "config/",
|
"config": "config/",
|
||||||
"versions": {
|
"versions": {
|
||||||
"solc": "0.4.24",
|
"solc": "0.4.24",
|
||||||
"web3": "1.0.0-beta.34",
|
"web3": "1.0.0-beta",
|
||||||
"ipfs-api": "17.2.7"
|
"ipfs-api": "17.2.7"
|
||||||
},
|
},
|
||||||
"plugins": {
|
"plugins": {
|
||||||
|
|
Loading…
Reference in New Issue