【文件属性】:
文件名称:CryptoZombies:Truffle中的Loom Network教程代码(https
文件大小:121KB
文件格式:ZIP
更新时间:2021-05-13 12:55:19
JavaScript
加密僵尸
这是更新到课程最后一课的合同。 内置。
是一个免费的交互式代码学校,教您通过构建自己的加密收藏游戏来在中编写智能合约。
安装
npm install -g truffle
npm install
truffle compile
truffle migrate
npm run dev
笔记:
如果在执行“迁移”时由于已被迁移而出现错误:
Error: Attempting to run transaction which calls a contract function, but recipient address 0xb389ce45f69e5dcb49375043c02d861b0d4d396b is not a contract address
使用“ --reset”选项执行迁移:
truffle migrate --reset
贡献
这个想法是使代码保持尽可能
【文件预览】:
CryptoZombies-master
----migrations()
--------1_initial_migration.js(129B)
--------2_deploy_contracts.js(521B)
----src()
--------index.html(651B)
--------js()
----contracts()
--------ZombieHelper.sol(1KB)
--------ZombieFactory.sol(1KB)
--------ZombieFeeding.sol(2KB)
--------ZombieOwnership.sol(1KB)
--------ZombieAttack.sol(826B)
--------Migrations.sol(515B)
----truffle-config.js(135B)
----README.md(1KB)
----truffle.js(195B)
----bs-config.json(67B)
----.gitignore(18B)
----package-lock.json(81KB)
----package.json(891B)