原创<br> VNT:打造开发者友好的下一代公链基础设施( 八 )

GLOBAL OPTIONS:

--help, -h show help

而部署合约到Testnet或者Mainnet的方法,则类似使用Truffle。

// Deploy a single contract without constructor arguments

deployer.deploy(A);

// Deploy a single contract with constructor arguments

deployer.deploy(A, arg1, arg2, ...);

// Don't deploy this contract if it has already been deployed

deployer.deploy(A, {overwrite: false});

// Set a maximum amount of gas and from address for the deployment

deployer.deploy(A, {gas: 4612388, from: "0x...."});

// External dependency example:

//

// For this example, our dependency provides an address when we're deploying to the

推荐阅读