我在看KittyBreeding.sol
/// @dev Set the cooldownEndTime for the given Kitty, based on its current cooldownIndex.
/// Also increments the cooldownIndex (unless it has hit the cap).
/// @param _kitten A reference to the Kitty in storage which needs its timer started.
function _triggerCooldown(Kitty storage _kitten) internal {
// Compute the end of the cooldown time (based on current cooldownIndex)
_kitten.cooldownEndTime = uint64(now + cooldowns[_kitten.cooldownIndex]);但我看不出“现在”是在哪里定义的,除非是在他们的kitty-core.test.js中
这个DAPP如何跟踪时间,让网站显示计时器?
https://ethereum.stackexchange.com/questions/32557
复制相似问题