我正在用特松露来写聪明的合同。当我想部署到测试网络(即: rinkeby网络)时,我使用以下命令:
truffle migrate --network rinkeby因为这是日志:
Running migration: 1_initial_migration.js
Deploying Migrations...
... 0xc032b44fb7d51ad386b6c1e7d9910798e36e1590b9fd557d50348af090ce06e3
Migrations: 0x44b273afa97a8c0c1dac41b2f5972b22c0a92bb2
Saving successful migration to network...
... 0x8fc27bea14c6c7e0bceac0c5232013211e8f7bd0cd05611935350b1fbf3c986b
Saving artifacts...
Running migration: 2_game_presale.js
Deploying GamePresale...
... 0x154df08d0d55d51fc2d2f78a8ac643f94b9cfde2eb5081e6b31d12367a7994ee
GamePresale: 0x3cd9498845833058e48fde58e521f34420123793
Saving successful migration to network...
... 0x789d608fd3302a931ef1ed744d50cfa63be24bde7d768c8508c0b978541e9b1f看上去那款松露被部署到2份合同里。所以我去etherscan查看:

因此,基于这张图片,松露创造了两个合同。所以我的问题是:
谢谢
发布于 2018-05-28 17:57:51
Migrations合同。这是一个由truffle init生成的契约,也是Truffle所需要的,用于执行迁移和记住迁移步骤。Migrations contract以将步长存储在last_completed_migration中。您的每个步骤只包含一个契约创建,但在每个步骤中可能有更多。第二个事务将1存储在last_completed_migration中。最后一个事务是在第二次也是最后一次迁移之后执行的,并在last_completed_migration中存储2。https://ethereum.stackexchange.com/questions/49776
复制相似问题