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.
1 parent a8b933c commit ef42535Copy full SHA for ef42535
tests/vyper/auction.vy
@@ -37,6 +37,11 @@ pendingReturns: HashMap[address, uint256]
37
# Create a blinded auction with `_biddingTime` seconds bidding time and
38
# `_revealTime` seconds reveal time on behalf of the beneficiary address
39
# `_beneficiary`.
40
+@external
41
+def __init__(_beneficiary: address, _biddingTime: uint256, _revealTime: uint256):
42
+ self.beneficiary = _beneficiary
43
+ self.biddingEnd = block.timestamp + _biddingTime
44
+ self.revealEnd = self.biddingEnd + _revealTime
45
46
47
# Place a blinded bid with:
@@ -170,4 +175,4 @@ def auctionEnd():
170
175
self.ended = True
171
176
172
177
# Transfer funds to beneficiary
173
- send(self.beneficiary, self.highestBid)
178
+ send(self.beneficiary, self.highestBid)
0 commit comments