Skip to content

Commit ef42535

Browse files
committed
Undo change to vyper test
1 parent a8b933c commit ef42535

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/vyper/auction.vy

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ pendingReturns: HashMap[address, uint256]
3737
# Create a blinded auction with `_biddingTime` seconds bidding time and
3838
# `_revealTime` seconds reveal time on behalf of the beneficiary address
3939
# `_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
4045

4146

4247
# Place a blinded bid with:
@@ -170,4 +175,4 @@ def auctionEnd():
170175
self.ended = True
171176

172177
# Transfer funds to beneficiary
173-
send(self.beneficiary, self.highestBid)
178+
send(self.beneficiary, self.highestBid)

0 commit comments

Comments
 (0)