使用truffle 的develop和console
truffle提供了两种log工具,可以任意使用,它们的区别
Console:
- You have a client you're already using, such as Ganache or geth,已经有一个客户端在使用的情况
- You want to migrate to a testnet (or the main Ethereum network)你想要切换网络
- You want to use a specific mnemonic or account list 你想使用一个特定账户名称或账号列表
Develop:
- You are testing your project with no intention of immediately deploying 只是测试项目,不想或不会立马部署合约
- You don't need to work with specific accounts (and you're fine with using default development accounts) 不需要指定账户地址数据什么的
- You don't want to install and manage a separate blockchain client 不想安装和管理一个单独的区块链客户端
命令&#