Skip to content

Commit

Permalink
Hardhat: updated TradeHub and SignatureSeries
Browse files Browse the repository at this point in the history
  • Loading branch information
soumalya340 committed Sep 29, 2023
1 parent 286eacc commit d1ad530
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion contracts/signatureseries/SignatureSeries.sol
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ contract SignatureSeries is Context, ERC721Enumerable, ERC2981, IERC4907 {
modifier onlyAdmin() {
require(
flowRoles.isAdmin(_msgSender()),
"MyriadFlowOfferStation: User is not authorized"
"SignatureSeries: User is not authorized"
);
_;
}
Expand Down
3 changes: 2 additions & 1 deletion contracts/tradehub/TradeHub.sol
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,7 @@ contract TradeHub is
uint256 endAt = block.timestamp + time;
uint256 startingBid = price * quantity;


idToMarketItem[itemId] = MarketItem(
itemId,
nftContract,
Expand Down Expand Up @@ -506,7 +507,7 @@ contract TradeHub is
"TradeHub: Timer cannot be less than One Minute"
);

uint256 price = idToMarketItem[itemId].highestBid;
uint256 price = idToMarketItem[itemId].price * idToMarketItem[itemId].supply;

uint256 endTime = block.timestamp + time;

Expand Down
Loading

0 comments on commit d1ad530

Please sign in to comment.