Skip to content

Commit

Permalink
updated import and using interface to reduce cost
Browse files Browse the repository at this point in the history
  • Loading branch information
Tien Ngo committed Oct 26, 2023
1 parent 2f7a105 commit d2f593a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions contracts/FeralfileEnglishAuction.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ pragma solidity ^0.8.13;
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

import "./FeralfileSaleData.sol";
import "./IFeralfileSaleData.sol";
import "./ECDSASigner.sol";
import "./IFeralfileVault.sol";

contract FFV4 is FeralfileSaleData {
contract IFeralfileExhibitionV4 is IFeralfileSaleData {
function buyArtworks(
bytes32 r_,
bytes32 s_,
Expand All @@ -17,7 +17,7 @@ contract FFV4 is FeralfileSaleData {
) external payable {}
}

contract FeralfileEnglishAuction is Ownable, FeralfileSaleData, ECDSASigner {
contract FeralfileEnglishAuction is Ownable, IFeralfileSaleData, ECDSASigner {
struct EnglishAuction {
bytes32 id;
uint256 startAt;
Expand Down Expand Up @@ -329,7 +329,7 @@ contract FeralfileEnglishAuction is Ownable, FeralfileSaleData, ECDSASigner {
if (!lastBid_.fromFeralFile) {
payable(vaultAddr_).transfer(lastBid_.amount);
}
FFV4(tokenAddr_).buyArtworks(r_, s_, v_, saleData_);
IFeralfileExhibitionV4(tokenAddr_).buyArtworks(r_, s_, v_, saleData_);

emit AuctionSettled(
aucId_,
Expand Down

0 comments on commit d2f593a

Please sign in to comment.