From f4a2eefbe235650f6ec90c21b79fdeaf78661b30 Mon Sep 17 00:00:00 2001 From: Schlagonia Date: Wed, 23 Oct 2024 23:05:14 -0600 Subject: [PATCH] fix: compiler --- src/Auctions/DumperAuction.sol | 2 +- src/Auctions/DumperAuctionFactory.sol | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Auctions/DumperAuction.sol b/src/Auctions/DumperAuction.sol index a61f5f3..bd21840 100644 --- a/src/Auctions/DumperAuction.sol +++ b/src/Auctions/DumperAuction.sol @@ -495,7 +495,7 @@ contract DumperAuction is Governance2Step, ReentrancyGuard { unchecked { left = auction.currentAvailable - _amountTaken; } - auctions[_from].currentAvailable = left; + auctions[_from].currentAvailable = uint128(left); // If the caller has specified data. if (_data.length != 0) { diff --git a/src/Auctions/DumperAuctionFactory.sol b/src/Auctions/DumperAuctionFactory.sol index 5cc71c5..4461912 100644 --- a/src/Auctions/DumperAuctionFactory.sol +++ b/src/Auctions/DumperAuctionFactory.sol @@ -1,7 +1,7 @@ // SPDX-License-Identifier: AGPL-3.0 pragma solidity >=0.8.18; -import {Auction} from "./Auction.sol"; +import {DumperAuction} from "./DumperAuction.sol"; import {Clonable} from "../utils/Clonable.sol"; /// @title AuctionFactory @@ -20,7 +20,7 @@ contract AuctionFactory is Clonable { constructor() { // Deploy the original - original = address(new Auction()); + original = address(new DumperAuction()); } /** @@ -144,7 +144,7 @@ contract AuctionFactory is Clonable { ) internal returns (address _newAuction) { _newAuction = _clone(); - Auction(_newAuction).initialize( + DumperAuction(_newAuction).initialize( _want, _receiver, _governance,