File tree Expand file tree Collapse file tree 4 files changed +4
-12
lines changed Expand file tree Collapse file tree 4 files changed +4
-12
lines changed Original file line number Diff line number Diff line change 1- const ejs = require ( 'ejs' ) ;
1+ require ( 'ejs' ) ;
22const Templates = {
33 utils : require ( './code_templates/utils.js.ejs' ) ,
44 vanilla_contract : require ( './code_templates/vanilla-contract.js.ejs' ) ,
@@ -206,9 +206,6 @@ class CodeGenerator {
206206 let contract = this . contractsManager . contracts [ className ] ;
207207 let contractJSON = { } ;
208208
209- let abi = JSON . stringify ( contract . abiDefinition ) ;
210- let gasEstimates = JSON . stringify ( contract . gasEstimates ) ;
211-
212209 contractJSON . contract_name = className ;
213210 contractJSON . address = contract . deployedAddress ;
214211 contractJSON . code = contract . code ;
Original file line number Diff line number Diff line change @@ -162,7 +162,7 @@ class ContractsManager {
162162 }
163163 callback ( ) ;
164164 }
165- ] , function ( err , result ) {
165+ ] , function ( err , _result ) {
166166 if ( err ) {
167167 self . logger . error ( "Error Compiling/Building contracts: " + err ) ;
168168 }
Original file line number Diff line number Diff line change @@ -36,12 +36,7 @@ class Deploy {
3636
3737 checkAndDeployContract ( contract , params , callback ) {
3838 let self = this ;
39- let suppliedArgs ;
4039 let realArgs ;
41- let arg ;
42- let l ;
43- let contractName ;
44- let referedContract ;
4540 contract . error = false ;
4641
4742 if ( contract . deploy === false ) {
@@ -164,7 +159,7 @@ class Deploy {
164159 self . logger . trace ( arguments ) ;
165160 self . checkAndDeployContract ( contract , null , callback ) ;
166161 } ,
167- function ( err , results ) {
162+ function ( err , _results ) {
168163 if ( err ) {
169164 self . logger . error ( "error deploying contracts" ) ;
170165 self . logger . error ( err . message ) ;
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ class DeployManager {
4242 return callback ( Error ( "error connecting to blockchain node" ) ) ;
4343 }
4444 if ( self . web3 . currentProvider . isConnected === undefined ) {
45- self . web3 . version . getNode ( function ( err , version ) {
45+ self . web3 . version . getNode ( function ( err , _version ) {
4646 if ( err ) {
4747 return callback ( Error ( "error connecting to blockchain node" ) ) ;
4848 }
You can’t perform that action at this time.
0 commit comments