decyphertv
Advanced tools
Comparing version 0.1.16 to 0.1.17
22
index.js
@@ -53,2 +53,13 @@ #!/usr/bin/env node | ||
global.decypher.opcodes = (source) => { | ||
if(global.decypher.contractName(source)) { | ||
contractSource = source; | ||
} else { | ||
contractSource = fs.readFileSync(source, 'utf8'); | ||
} | ||
var compiled = solc.compile(contractSource); | ||
var contractName = global.decypher.contractName(contractSource); | ||
return compiled["contracts"][`:${contractName}`]["opcodes"] | ||
} | ||
global.decypher.etherBalance = (contract) => { | ||
@@ -136,2 +147,13 @@ switch(typeof(contract)) { | ||
global.decypher.opcodes = (source) => { | ||
if(global.decypher.contractName(source)) { | ||
contractSource = source; | ||
} else { | ||
contractSource = fs.readFileSync(source, 'utf8'); | ||
} | ||
var compiled = solc.compile(contractSource); | ||
var contractName = global.decypher.contractName(contractSource); | ||
return compiled["contracts"][`:${contractName}`]["opcodes"] | ||
} | ||
global.decypher.etherBalance = (contract) => { | ||
@@ -138,0 +160,0 @@ switch(typeof(contract)) { |
{ | ||
"name": "decyphertv", | ||
"version": "0.1.16", | ||
"version": "0.1.17", | ||
"description": "CLI for helper libraries to follow along with the decypher.tv ethereum screencast series", | ||
@@ -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
11242
223