Truffle 入门
目录
准备环境
启动
mkdir hello
cd hello
# truffle compile 编译合约
# truffle console 进入命令行交互模式,合成合约需要在这个交互模式下
# truffle migrate 在命令行交互模式中,合成合约
truffle init
truffle compile
MetaMask 集成 truffle
- 启动Truffle图形界面
- 启动MetaMask 添加网络
- Click on your user picture from metamask, and then select import account from drop down in metamask. And then input the secret key (select one of the 10 accounts from image below) from you gnache gui server.