Comparing version
@@ -366,8 +366,6 @@ 'use strict'; | ||
error = 'Invalid bid object.'; | ||
} else if (bid.maxPrice && bid.price > bid.maxPrice) { | ||
error = 'Invalid bid price.'; | ||
} else if ('created' === status) { | ||
error = 'Auction not started.'; | ||
} else if ('ending' === status) { | ||
error = 'Auction is ending.'; | ||
} else if ('ending' === status && this.ending && this.ending.agentId !== agentId) { | ||
error = 'Auction has ended, waiting for Auctioneer to confirm and end auction.'; | ||
} else if ('ended' === status) { | ||
@@ -478,4 +476,2 @@ error = 'Auction already ended.'; | ||
error = 'Invalid agent.'; | ||
} else if ('ending' === status) { | ||
error = 'Auction is ending.'; | ||
} else if ('ended' === status) { | ||
@@ -482,0 +478,0 @@ error = 'Auction already ended.'; |
@@ -436,8 +436,6 @@ 'use strict'; | ||
error = 'Invalid bid object.'; | ||
} else if (bid.maxPrice && bid.price > bid.maxPrice) { | ||
error = 'Invalid bid price.'; | ||
} else if ('created' === status) { | ||
error = 'Auction not started.'; | ||
} else if ('ending' === status) { | ||
error = 'Auction is ending.'; | ||
} else if ('ending' === status && this.ending && this.ending.agentId !== agentId) { | ||
error = 'Auction has ended, waiting for Auctioneer to confirm and end auction.'; | ||
} else if ('ended' === status) { | ||
@@ -556,4 +554,2 @@ error = 'Auction already ended.'; | ||
error = 'Invalid agent.'; | ||
} else if ('ending' === status) { | ||
error = 'Auction is ending.'; | ||
} else if ('ended' === status) { | ||
@@ -560,0 +556,0 @@ error = 'Auction already ended.'; |
{ | ||
"name": "auction", | ||
"version": "0.1.8", | ||
"version": "0.1.9", | ||
"description": "Easy way to create auctions", | ||
@@ -5,0 +5,0 @@ "author": { |
49428
-0.29%1626
-0.49%