Hi, I’m Dung Huynh Duc . Nice to meet you.

About Me

I’m a full stack developer. I’m a fast learner and self-taught coder. I often take my time for researching and learning about hot and trending technology.

DApp
Truffle

Truffle CLI exec with arguments

const argv = require('yargs-parser')(process.argv.slice(2));

/**
 * Usage: `truffle exec hello.js -n=Dung [--network <name>] [--compile]`,
 */
module.exports = async (callback) => {
  let name = argv?.n || 'World!';
  callback(`Hello ${name}`);
};