-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add Debug contract #9
base: main
Are you sure you want to change the base?
Conversation
src/DebuggingContract.sol
Outdated
@@ -0,0 +1,19 @@ | |||
// SPDX-License-Identifier: GPL-3.0 | |||
pragma solidity ^0.4.25; |
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.
Please use something newer >8
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.
This is the version used in Reality; newer ones don't have now.
The idea of this contract was that if you need to debug something like this, go here, edit it, and deploy by free will.
src/DebuggingContract.sol
Outdated
function getNow() public view returns (uint32) { | ||
return uint32(now); | ||
} |
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.
This is a proxy for block.timestamp (now is deprecated)
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.
It's still all related to Reality's contract, this is exactly what they are using.
Everything that is achieved calling the |
No description provided.