-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Conversation
…sts-only solution
… implemented using ContractDetails
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@zilm13 great job! 👍
Repository originalRepo = track; | ||
// removes address in main track copy if the same address already exists | ||
// TCK test case only - normally this is near-impossible situation in the real network | ||
if (cacheTrack.hasContractDetails(newContractAddress)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't this call always return true?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And could you please share more details about the case which this workaround is made for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't this call always return true?
Looks like you are right from the implementation.
But as we have such interface method for checking and as implementations could change in future, I'd keep this.
Ready to schedule Constantinople fork on MainNet:
Review me!