aboutsummaryrefslogtreecommitdiffstats
path: root/test/contracts/AuctionRegistrar.cpp
diff options
context:
space:
mode:
authorChristian Parpart <christian@ethereum.org>2018-06-28 21:19:53 +0800
committerChristian Parpart <christian@ethereum.org>2018-07-02 20:32:05 +0800
commite251cdcf47667ad3e7c88446d8b26cb3ae1bd0f2 (patch)
tree2537abaa6dc1cbcfc6c496935319f33563cddb43 /test/contracts/AuctionRegistrar.cpp
parente289c36158701ba0b874051e9e426e270b0e38e2 (diff)
downloaddexon-solidity-e251cdcf47667ad3e7c88446d8b26cb3ae1bd0f2.tar.gz
dexon-solidity-e251cdcf47667ad3e7c88446d8b26cb3ae1bd0f2.tar.zst
dexon-solidity-e251cdcf47667ad3e7c88446d8b26cb3ae1bd0f2.zip
test: ensure compiled tests do not use var-keyword in preparation of var-keyword removal
Diffstat (limited to 'test/contracts/AuctionRegistrar.cpp')
-rw-r--r--test/contracts/AuctionRegistrar.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/contracts/AuctionRegistrar.cpp b/test/contracts/AuctionRegistrar.cpp
index f5abb83d..20f22804 100644
--- a/test/contracts/AuctionRegistrar.cpp
+++ b/test/contracts/AuctionRegistrar.cpp
@@ -67,7 +67,7 @@ contract AuctionSystem {
function onAuctionEnd(string _name) internal;
function bid(string _name, address _bidder, uint _value) internal {
- var auction = m_auctions[_name];
+ Auction storage auction = m_auctions[_name];
if (auction.endDate > 0 && now > auction.endDate)
{
emit AuctionEnded(_name, auction.highestBidder);
@@ -117,9 +117,9 @@ contract GlobalRegistrar is Registrar, AuctionSystem {
}
function onAuctionEnd(string _name) internal {
- var auction = m_auctions[_name];
- var record = m_toRecord[_name];
- var previousOwner = record.owner;
+ Auction storage auction = m_auctions[_name];
+ Record storage record = m_toRecord[_name];
+ address previousOwner = record.owner;
record.renewalDate = now + c_renewalInterval;
record.owner = auction.highestBidder;
emit Changed(_name);