handle arbitrator trade in TradableList (#58)

This commit is contained in:
woodser 2021-05-08 20:12:50 -04:00 committed by GitHub
parent afe46ebe26
commit fcdc627d00
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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() = " +