本文主要讲述使用Truffle framework部署的第一个Solidity合约
一.前置工作:
1.安装Solidity的开发框架Truffle
npm install -g truffle
环境要求:NodeJS 5.0+
2.安装开发客户端(geth)
sudo add-apt-repository -y ppa:ethereum/ethereum
sudo apt-get update
sudo apt-get install ethereum
当新版本的geth发布后,可以直接通过APT完成geth版本升级。
sudo apt-get update
Sudo apt-get upgrade
二.部署合约
1. 创建工程目录
在你想放工程的任何位置,创建一个文件夹(