We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f2a68ea + 2130fdd commit a915da6Copy full SHA for a915da6
patterns/commit-reveal/SealedAuctionMint.sol
@@ -98,8 +98,8 @@ contract SealedAuctionMint {
98
return (block.timestamp - launchTime) / AUCTION_COMMIT_DURATION + 1;
99
}
100
101
- function getAuctionStartTime(uint256 auctionId) public pure returns (uint256 startTime) {
102
- return ((auctionId - 1) * AUCTION_COMMIT_DURATION) + startTime;
+ function getAuctionStartTime(uint256 auctionId) public view returns (uint256 startTime) {
+ return ((auctionId - 1) * AUCTION_COMMIT_DURATION) + launchTime;
103
104
105
function isAuctionOver(uint256 auctionId) public view returns (bool) {
@@ -109,4 +109,4 @@ contract SealedAuctionMint {
109
function _mintTo(address owner) private {
110
ownerOf[++lastTokenId] = owner;
111
112
-}
+}
0 commit comments