pudding-loader
Advanced tools
Comparing version 0.0.1 to 0.0.3
18
index.js
@@ -0,4 +1,5 @@ | ||
var Pudding = require('ether-pudding'); | ||
var PuddingGenerator = require('ether-pudding/generator'); | ||
module.exports = function(compiledSolObj) { | ||
module.exports = function(compiledSolObj) { | ||
@@ -8,16 +9,13 @@ this.cacheable(); | ||
var classContracts = ""; | ||
if(Pudding.version === undefined) { Pudding.version = '0.0.0'; } | ||
for (var contractName in compiledSolObj.contracts){ | ||
var compiledSolObj = inputCompiled.contracts[contractName]; | ||
var contractInterface = compiledSolObj.interface; | ||
var contractBytecode = compiledSolObj.bytecode; | ||
var inputCompiled = compiledSolObj.contracts[contractName]; | ||
var whiskyInfo = Pudding.whisk(contractInterface, contractBytecode); | ||
classContracts += PuddingGenerator.generate(contractName, whiskyInfo); | ||
classContracts += PuddingGenerator.generate(contractName, inputCompiled, Pudding); | ||
} | ||
return classContracts; | ||
return classContracts; | ||
} |
{ | ||
"name": "pudding-loader", | ||
"version": "0.0.1", | ||
"version": "0.0.3", | ||
"description": "Pudding loader for Webpack to call solidity contracts", | ||
@@ -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
1640
11