Skip to content
This repository has been archived by the owner on Jan 24, 2022. It is now read-only.

Check isConstructor for running initializable #167

Merged
merged 1 commit into from
Oct 4, 2018

Conversation

spalladino
Copy link
Contributor

This change is required from oz-zos to handle certain scenarios
with multiple inheritance. Original commit by @frangio is:

OpenZeppelin/openzeppelin-contracts-upgradeable@6e0ace1#diff-0e8e787a34109f83dafec072d3664194


/// @dev Returns true if and only if the function is running in the constructor
function isConstructor() private view returns (bool) {
uint cs;
Copy link
Contributor

Choose a reason for hiding this comment

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

care being explicit uint256?

This change is required from oz-zos to handle certain scenarios
with multiple inheritance. Original commit by @frangio is:

OpenZeppelin/openzeppelin-contracts-upgradeable@6e0ace1#diff-0e8e787a34109f83dafec072d3664194
@spalladino spalladino force-pushed the feature/check-isconstructor-in-initializable branch from d8bc96e to 021b000 Compare October 4, 2018 19:29
@spalladino spalladino added the status:ready-to-merge Order mergify to merge label Oct 4, 2018
@mergify mergify bot merged commit 6cd9a72 into master Oct 4, 2018
@facuspagnuolo facuspagnuolo deleted the feature/check-isconstructor-in-initializable branch October 22, 2018 18:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status:ready-to-merge Order mergify to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants