Refactor the method findTransactionOppos and fix an error