mirror of
https://github.com/haveno-dex/haveno.git
synced 2024-10-01 01:35:48 -04:00
handle arbitrator trade in TradableList (#58)
This commit is contained in:
parent
afe46ebe26
commit
fcdc627d00
@ -76,6 +76,8 @@ public final class TradableList<T extends Tradable> extends PersistableListAsObs
|
|||||||
return SellerAsMakerTrade.fromProto(tradable.getSellerAsMakerTrade(), xmrWalletService, coreProtoResolver);
|
return SellerAsMakerTrade.fromProto(tradable.getSellerAsMakerTrade(), xmrWalletService, coreProtoResolver);
|
||||||
case SELLER_AS_TAKER_TRADE:
|
case SELLER_AS_TAKER_TRADE:
|
||||||
return SellerAsTakerTrade.fromProto(tradable.getSellerAsTakerTrade(), xmrWalletService, coreProtoResolver);
|
return SellerAsTakerTrade.fromProto(tradable.getSellerAsTakerTrade(), xmrWalletService, coreProtoResolver);
|
||||||
|
case ARBITRATOR_TRADE:
|
||||||
|
return ArbitratorTrade.fromProto(tradable.getArbitratorTrade(), xmrWalletService, coreProtoResolver);
|
||||||
default:
|
default:
|
||||||
log.error("Unknown messageCase. tradable.getMessageCase() = " + tradable.getMessageCase());
|
log.error("Unknown messageCase. tradable.getMessageCase() = " + tradable.getMessageCase());
|
||||||
throw new ProtobufferRuntimeException("Unknown messageCase. tradable.getMessageCase() = " +
|
throw new ProtobufferRuntimeException("Unknown messageCase. tradable.getMessageCase() = " +
|
||||||
|
Loading…
Reference in New Issue
Block a user