Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide more offer & contract detail to CLI #5357

Merged
merged 12 commits into from Apr 2, 2021
4 changes: 2 additions & 2 deletions cli/src/main/java/bisq/cli/TradeFormat.java
Expand Up @@ -59,7 +59,7 @@ public static String format(TradeInfo tradeInfo) {
"%" + (COL_HEADER_TRADE_TAKER_FEE.length() + 2) + "s"
: "";

boolean showBsqBuyerAddress = shouldShowBqsBuyerAddress(tradeInfo, isTaker);
boolean showBsqBuyerAddress = shouldShowBsqBuyerAddress(tradeInfo, isTaker);
Supplier<String> bsqBuyerAddressHeader = () -> showBsqBuyerAddress ? COL_HEADER_TRADE_BSQ_BUYER_ADDRESS : "";
Supplier<String> bsqBuyerAddressHeaderSpec = () -> showBsqBuyerAddress ? "%s" : "";

Expand Down Expand Up @@ -203,7 +203,7 @@ private static String formatTradeData(String format,
}
};

private static boolean shouldShowBqsBuyerAddress(TradeInfo tradeInfo, boolean isTaker) {
private static boolean shouldShowBsqBuyerAddress(TradeInfo tradeInfo, boolean isTaker) {
if (tradeInfo.getOffer().getBaseCurrencyCode().equals("BTC")) {
return false;
} else {
Expand Down