Skip to content

fix serious bug in apostleBase, which deserves deeper study#21

Merged
hackfisher merged 5 commits intoevolutionlandorg:masterfrom
sekisamu:master
Dec 20, 2018
Merged

fix serious bug in apostleBase, which deserves deeper study#21
hackfisher merged 5 commits intoevolutionlandorg:masterfrom
sekisamu:master

Conversation

@sekisamu
Copy link
Contributor

No description provided.

returns (bytes4) {
// owner can put apostle on market
// after coolDownEndTime
if(IApostleBase(registry.addressOf(CONTRACT_APOSTLE_BASE)).isReadyToBreed(_tokenId)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shoud add .isObjectReadyToUse as one of the conditions to isReadyToBreed


// owner can put apostle onto siring market
// after coolDownEndTime
if (IApostleBase(registry.addressOf(CONTRACT_APOSTLE_BASE)).isReadyToBreed(_tokenId)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

better to check isReadyToBreed if it is different with isObjectReadyToUse.

@hackfisher hackfisher merged commit ae56676 into evolutionlandorg:master Dec 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants