mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #4374 from ethereum/v050-var-keyword-removal-preps-end2end-tests
V050 var keyword removal preparations (End-to-End tests)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user