Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(contract): check constructor addresses #16

Merged
merged 1 commit into from
Jul 8, 2021
Merged

Conversation

PierrickGT
Copy link

mapping(address => uint256) public balances;

constructor(ISushiBar _sushiBar, ISushi _sushiAddr) public {
require(
address(_sushiBar).isContract(),

Choose a reason for hiding this comment

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

just check if zero!

Copy link
Author

Choose a reason for hiding this comment

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

Done: a99e3a4

@PierrickGT PierrickGT merged commit 14389a9 into fixes/c4-audit Jul 8, 2021
@PierrickGT PierrickGT deleted the fix/81 branch July 8, 2021 07:40
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