Skip to content

Commit 18dae17

Browse files
committed
chore: update imports
also run linter
1 parent 2596aab commit 18dae17

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

contracts/src/EscrowUniversal.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ pragma solidity 0.8.24;
1010
import {IArbitrableV2, IArbitratorV2} from "@kleros/kleros-v2-contracts/arbitration/interfaces/IArbitrableV2.sol";
1111
import "@kleros/kleros-v2-contracts/arbitration/interfaces/IDisputeTemplateRegistry.sol";
1212
import {SafeERC20, IERC20} from "./libraries/SafeERC20.sol";
13+
import {NATIVE, Status, Party, Transaction, Resolution} from "./interfaces/Types.sol";
1314
import "./interfaces/IEscrow.sol";
1415

1516
/// @title EscrowUniversal for a sale paid in native currency or ERC20 tokens without platform fees.

contracts/src/EscrowView.sol

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ pragma solidity 0.8.24;
44

55
import {Strings} from "@openzeppelin/contracts/utils/Strings.sol";
66
import {IERC20Metadata} from "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol";
7-
import {EscrowUniversal, Transaction, NATIVE, Party, Status, IERC20} from "./EscrowUniversal.sol";
7+
import {EscrowUniversal} from "./EscrowUniversal.sol";
8+
import {Transaction, NATIVE, Party, Status, IERC20} from "./interfaces/Types.sol";
89

910
/// @title EscrowView
1011
/// @notice A view contract for EscrowUniversal to facilitate the display of ruling options.
@@ -26,9 +27,20 @@ contract EscrowView {
2627
function getPayoutMessages(
2728
uint256 _transactionID
2829
) external view returns (string memory noWinner, string memory buyerWins, string memory sellerWins) {
29-
(, , uint256 amount, , , , , uint256 buyerFee, uint256 sellerFee, , , IERC20 token) = escrow.transactions(
30-
_transactionID
31-
);
30+
(
31+
,
32+
,
33+
uint256 amount,
34+
,
35+
,
36+
,
37+
,
38+
uint256 buyerFee,
39+
uint256 sellerFee,
40+
,
41+
,
42+
IERC20 token
43+
) = escrow.transactions(_transactionID);
3244

3345
(uint256 noWinnerPayout, uint256 noWinnerPayoutToken, , ) = escrow.getPayouts(_transactionID, Party.None);
3446
(, , uint256 buyerWinsCost, uint256 buyerWinsCostToken) = escrow.getPayouts(_transactionID, Party.Buyer);

0 commit comments

Comments
 (0)