code style

This commit is contained in:
bumi 2018-04-07 19:41:39 +02:00
parent 1488862b42
commit ebb26f78c2

View File

@ -6,7 +6,7 @@ module.exports = function(callback) {
let args = process.argv.slice(6); let args = process.argv.slice(6);
if (!contractName) { if (!contractName) {
console.log("Usage:") console.log("Usage:");
console.log(" truffle exec scripts/cli.js <Contract name> <method to call> [<optional> <arguments>]"); console.log(" truffle exec scripts/cli.js <Contract name> <method to call> [<optional> <arguments>]");
callback(); callback();
return; return;
@ -23,7 +23,7 @@ module.exports = function(callback) {
console.log(`Calling ${method} with ${JSON.stringify(args)}`); console.log(`Calling ${method} with ${JSON.stringify(args)}`);
contract[method](...args).then((result) => { contract[method](...args).then((result) => {
console.log('Result:'); console.log("\nResult:");
console.log(result); console.log(result);
callback(); callback();