Skip to content
Snippets Groups Projects
Unverified Commit 0f273d05 authored by Xiliang Chen's avatar Xiliang Chen Committed by GitHub
Browse files

rename usage of LinkedItem to avoid duplicated type names (#54)

parent 700afbcc
No related branches found
No related tags found
No related merge requests found
...@@ -31,11 +31,13 @@ decl_event!( ...@@ -31,11 +31,13 @@ decl_event!(
} }
); );
type AuctionIdLinkedItem<T> = LinkedItem<<T as Trait>::AuctionId>;
decl_storage! { decl_storage! {
trait Store for Module<T: Trait> as Auction { trait Store for Module<T: Trait> as Auction {
pub Auctions get(fn auctions): map T::AuctionId => Option<AuctionInfo<T::AccountId, T::Balance, T::BlockNumber>>; pub Auctions get(fn auctions): map T::AuctionId => Option<AuctionInfo<T::AccountId, T::Balance, T::BlockNumber>>;
pub AuctionsCount get(fn auctions_count): T::AuctionId; pub AuctionsCount get(fn auctions_count): T::AuctionId;
pub AuctionEndTime get(fn auction_end_time): map(T::BlockNumber, Option<T::AuctionId>) => Option<LinkedItem<T::AuctionId>>; pub AuctionEndTime get(fn auction_end_time): map(T::BlockNumber, Option<T::AuctionId>) => Option<AuctionIdLinkedItem<T>>;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment