ethereum-web3-plus
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -25,6 +25,9 @@ | ||
} | ||
SolidityCompiler.prototype.compile = function(source) { | ||
SolidityCompiler.prototype.compile = function(sourceFile) { | ||
this.compileInline('import "'+sourceFile+'";'); | ||
} | ||
SolidityCompiler.prototype.compileInline = function(sourceInline) { | ||
var eth=this.web3.eth; | ||
var filled = "________________________________________"; // used for lib token creation below | ||
var compiled = eth.compile.solidity('import "'+source+'";'); | ||
var compiled = eth.compile.solidity(sourceInline); | ||
for( var obj in compiled ) { | ||
@@ -39,3 +42,3 @@ var name=obj.split(":")[1]; | ||
// replacing the lib totens with their address in all compiled contracts | ||
var reLib = /_+.*?_+/g; | ||
var reLib = /__.*?__+/g; | ||
for(name in this.DictContract) { | ||
@@ -42,0 +45,0 @@ for(lib in this.DeployedLib) { |
{ | ||
"name": "ethereum-web3-plus", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Adds some simplifications to the web3 package such as compilation, instance creation, call sequencing", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17846
241