aboutsummaryrefslogtreecommitdiffstats
path: root/test/contracts/AuctionRegistrar.cpp
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-07-03 00:26:46 +0800
committerGitHub <noreply@github.com>2018-07-03 00:26:46 +0800
commit0f3872694bb668274e10e72b1a2c3092b7d5162b (patch)
tree31601686a2fdab3d84cdd13b964115b11363ef33 /test/contracts/AuctionRegistrar.cpp
parent08aa7e47e482d1cc7861856a666875f3b1ea7d2b (diff)
parente251cdcf47667ad3e7c88446d8b26cb3ae1bd0f2 (diff)
downloaddexon-solidity-0f3872694bb668274e10e72b1a2c3092b7d5162b.tar.gz
dexon-solidity-0f3872694bb668274e10e72b1a2c3092b7d5162b.tar.zst
dexon-solidity-0f3872694bb668274e10e72b1a2c3092b7d5162b.zip
Merge pull request #4374 from ethereum/v050-var-keyword-removal-preps-end2end-tests
V050 var keyword removal preparations (End-to-End tests)
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 0b888b90..bd996fb1 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);