Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- WalletAccountEntity senderAccount = entityManager.find(WalletAccountEntity.class, sender.getAssetCode());
- Long senderWalletId = senderAccount.getDealerWallet().getWalletId();
- WalletAccountEntity receiverAccount = entityManager.find(WalletAccountEntity.class, receiver.getTargetCode());
- Long receiverWalletId = receiverAccount.getDealerWallet().getWalletId();
- if (senderWalletId != null && receiverWalletId != null && !senderWalletId.equals(receiverWalletId)) {
- LOGGER.error("Different users");
- throw new CreateOperationException(baseOperation.getUID1(), 2169L);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement