摘录自官方文档
Install the CDT
Download
1 | $ git clone --recursive https://github.com/eosio/eosio.cdt --branch v1.4.1 --single-branch |
It may take up to 30 minutes to clone the repository
Build
1 | ./build.sh |
Install
1 | sudo ./install.sh |
Compile Contract
1 | $ eosio-cpp -o token.wasm token.cpp --abigen |
Validate WASM Hash
1 | $ md5 token.wasm |
Compare to deploy transaction https://eosq.app/tx/a53fdf96b1fa6b990f05d7a5f1007476e5f1e2d7848e1e652ecc866db995937d